Questions tagged [decryption]

In cryptography, encryption is the process of encoding information. This process converts the original representation of the information, known as plaintext, into an alternative form known as ciphertext. Only authorized parties can decipher a ciphertext back to plaintext and access the original information.

Filter by
Sorted by
Tagged with
0
votes
0answers
49 views

Reverse Encryption Algorithm from Decryption code, typescript [closed]

I really want to learn how I can reverse the encryption algorithm from the decryption code. I don’t know where to begin and need a push. Here is the decryption code: ...
0
votes
2answers
49 views

Is it possible to get the SHA256 hash collision with partial known data

I have a text sentence that consists of 448 digits [0-9] [a-f] (in HEX format). This text sentence is partially cut off, but I know the middle, and the beginning ...
1
vote
4answers
409 views

Can you decode aes by hand if you have the key?

I made a javascript aes encryption program and I do have the key to what I encrypted. Is there a way to use that key and figure out what was encrpyted without help of a program? I encrypted "...
0
votes
0answers
49 views

RSA implementation not working with large values for plaintext [duplicate]

While implementing RSA encryption/decryption (using python), the plaintext doesn't match with the decrypted ciphertext for large values of plaintext. Works fine for smaller values for plaintext (...
1
vote
0answers
28 views

What is the best way to save ChaCha20 Nonce in Cipher-Image BMP file?

I have a question about ChaCha20. As far as I know ChaCha20 is a cipher algorithm that uses 4 inputs: Key (secret) Constant (not secret) Block Number/Counter (keystream block number) Nonce (random ...
-1
votes
0answers
58 views

how do you find a key that has longer length than the Vigenère cipher text?

so, for example, I have a ciphertext yvbcxgjryioszkiul that is a variant of Vigenère cipher and it is much longer than the message to be encrypted, in another word, the key is never repeated, then how ...
1
vote
1answer
57 views

Read ECDHE traffic with Wireshark or the like

There is some https traffic from a specific server (which I have the certificate and private key) that I need legitimately be able to read. This traffic doesn’t come via browser so besides the ...
0
votes
0answers
39 views

How do I progress with cracking this monoalphabetic substitution cipher that ignores natural word divisions?

Having some trouble cracking this cipher (this is part of a homework assignment for a cryptology class) I've looked at letter frequencies but I'm not sure what else there is to help me. Given the ...
1
vote
1answer
59 views

Getting the plaintext encrypting the ciphertext

Context: an encryption game from overthewire (the link to it: https://overthewire.org/wargames/krypton/krypton6.html, also good for more info) where given the ciphertext, one must obtain the plaintext....
-2
votes
1answer
88 views

Encrypt private key and decrypt with the public key

Is it possible to encrypt with the RSA private key and decrypt with the RSA public key(not for signature) The task is that I have to encrypt the data with a private key. Transfer this data to another ...
0
votes
1answer
56 views

Decrypt a ciphertext knowing of a pattern of key repetition

I have two ciphertexts (I do not know which encryption algorithm was used to create them) which both starts with the same 3-characters long word. This led me to believe that the same key was used for ...
0
votes
0answers
35 views

Fast key exchange algorithm in hardware with small key size

Which asymmetric algorithm will be best only for key exchange to set up communication using symmetric cryptographic algorithm. Comparison should be in term of speed, key length and their hardware ...
2
votes
2answers
180 views

FOR AES GCM decrypt function, Does the output(PT) depend on Tag value(T)?

According to spec, FOR GCM decrypt function input is IV, A, C, and T. As mentioned below: 5.2.2 Authenticated Decryption Function Given the selection of an approved block cipher, key, and an ...
0
votes
1answer
60 views

RSA use prime p as public exponent

I've got two 1024 bits prime $p$,$q$,and $n$ = $p$ * $q$. now I know the result of $ c^{p} \quad mod \quad n = x$,also the value of c is given, I wonder if it is possible to factorize $n$.
0
votes
1answer
34 views

Can we determine the size of n-bytes before encryption by AES-128?

I am writing a program in python to encrypt files. This program takes subsequent 1024*1024 (1 mebibyte) chunks of data from a file and encrypts it using AES-128. This is performed in a loop until all ...
0
votes
1answer
66 views

My fernet key "expired" what now?

6 months ago i created a bot that basically stored every users data in json format in different text files and i had a fernet key. I basically didn't touched it for like 2 months now, because it's a ...
1
vote
0answers
72 views

Encryption of data with multiple possible decryption keys

I'm new to the Cryptography Stack Exchange, so my question might be very naive. What encryption algorithms are out there that will allow different decryption keys to decrypt the same piece of ...
0
votes
1answer
64 views

RSA DECRYPTION when N gives only one prime number

I am getting only 1 prime factor to some power if i factorize N for RSA decryption. So, in this case what will be the value of P and Q. P will be that one Prime Factor and then there is nothing left ...
1
vote
1answer
138 views

Decryption of an unknown cipher

How can I identify the cipher that encrypted the data shown below? I'm very new to this field, so I am not sure. For example: How does one know which cipher is used in the following line? How can one ...
1
vote
0answers
29 views

decryption in IDEA if the encryption was made without the output transformation

I'm implementing IDEA encryption and decryption and I'm trying to implement it in different variants(e.g if we didn't do the output transformation or if we don't do full 8-round encryption). I got the ...
2
votes
1answer
127 views

What is the correct order of operations for one-time pad cipher when using subtraction and mod 10 arithmetic?

What would be the proper order of operations for OTP encryption/decryption when using subtraction and mod 10? E.g. P - K = C or K - P = C Most of the sources I have seen do not cover this topic or I ...
1
vote
0answers
27 views

Where exactly do you add the zeroes to a URL in a padding oracle attack? Also, how would you decrypt a file this way?

I have been studying various crypto attacks, and one of the attacks that I have recently studied was the padding oracle attack. Now, I mostly understand it, but there is one aspect of the padding ...
1
vote
1answer
58 views

Completing RSA Encryption

Being new to cryptology, I'm trying to understand how I would complete RSA encryption by hand. I can only follow the formula so far before becoming very confused. I want to encrypt the value "123&...
0
votes
0answers
28 views

How can I go about decrypting some files that were most likely encrypted using android's file-based encryption?

I am looking to try and decrypt some files from a phone that I no longer have. I've tried to provide some background information here for context purposes. The files in question were backed up from ...
0
votes
1answer
44 views

Extra bytes when decryping with OpenSSL

The string is encrypted with the following properties (using C#): myAes.Mode = CipherMode.CBC myAes.KeySize = 128 myAes.Padding = PaddingMode.PKCS7 myAes.BlockSize = 128 myAes.FeedbackSize = 128 Key: ...
-3
votes
1answer
72 views

Cryptography Challenge [closed]

I have been messing around with cryptography (for recreational use) and I have created my own function that encrypts things for me. Now, with that being said, I freely admit that I am by no means an ...
1
vote
1answer
20 views

crypt algorithm by a vectored key and the error is Proportional to the difference between input key and real key

I want to find an crypt algorithm which provides the functionality described below. Given a key (a vector Vkey) and a data (an image), use this key to encry the image; the encrypted image can not be ...
0
votes
0answers
63 views

Am I Doing RSA Correctly?

I am trying to figure out how to complete RSA manually. I am trying to encode a simple block message (Mi). I used CrypTool to determine the encryption. When I "manually" computed the ...
2
votes
1answer
92 views

It possible to encrypt .bmp bitmap files using Stream Cipher Chacha20?

Maybe this sounds like a stupid question. I'm sorry for that. I just wanted to know is it possible to encrypt a bitmap image file like *.BMP, and generate the ciphertext which is an obscure bitmap ...
1
vote
0answers
142 views

How can I decrypt AES-256 GCM with key with a IV that is missing?

I want to decrypt a file that has been encrypted using AES-256 in GCM mode in libressl. I have the key but I don't have the IV, is there any way I can still decrypt?
1
vote
0answers
45 views

Decrypt web https-transmitted file manually [closed]

When the communication between server and client starts -after a request, the computers agree on an encryption protocol to protect the data, the TLS handshake. The data may not be encrypted on the ...
0
votes
0answers
27 views

How do I preform the inverse key expansion of aes decryption? [duplicate]

I’m working on an aes encryption and decryption project in 8086 assembly! I managed to code an encryption algorithm and it worked perfectly. No I’m working on the decryption algorithm. I’ve managed to ...
1
vote
0answers
54 views

How to decrypt raw TLS bytes?

Is there any tool / way to decrypt raw bytes of a TLS 1.2 session, when the master key is known, even if forward secrecy is used? The closest I found is this. I know its possible using Wireshark, but ...
1
vote
4answers
185 views

Are there any cryptographic algorithms, which lets the user apply some modifications on the encoded data, without decoding it?

I would like to encode some data with a key, and send it to a third party. They don't know the key to decode it, but I would like to make it possible for them to apply some modifications on it. Then ...
1
vote
1answer
83 views

Can we sign and encrypt with RSA keys of both sender and receiver?

By using RSA encryption, it is possible to "encrypt" sign with sender's private key and then with receiver's public key, and decrypt with receiver's private key and then with sender's public ...
2
votes
0answers
39 views

Is there a way to find the two generator polynomials of a JPL sequence?

I am decoding a binary sequence that was detected as an unpractically long LFSR by the Berlekamp-Massey algorithm. First of all, the generated sequence is far longer than it needs to be and since it ...
1
vote
1answer
57 views

AES (or otherwise): can you decrypt concatenated encrypted messages as one?

Say I have 20 distinct encrypted messages. Using AES, I am only getting the correct output if I decrypt each of the 20 messages individually. Is it possible using AES or another method to call my ...
-1
votes
2answers
647 views

Special characters in AES Encryption Key

We all know that AES uses Key, IV and salt. But what if we add special ASCII characters like Alternate 255 (" ") or Alternatively 163 ("£") or Alternate 224 ("α") in the ...
0
votes
0answers
60 views

Can you obtain private key d and compute plaintext from El-Gamal?

Given an Elgamal encryption scheme with public parameters $k_{pub}=(p,\alpha,\beta)$ and an unknown private key $k_{pr}=d$. Due to an erroneous implementation of the random number generator of the ...
1
vote
0answers
68 views

How to break a vigenere cipher with a period of 2, and knowing a part of the plaintext

the encrypt code is "ARJHNRIUCGQHPFGQFHTXPDEHTLNOC", and the part that i ​know of the plaintext is "DERUNA". The key is period of 2, so the key are 2 letters. Each letter of the ...
5
votes
4answers
5k views

How can I force slow decryption in the browser?

I have a string that I will encrypt on the server. I then want to send the encrypted string along with a decryption method for it to be decrypted in the browser. I want the decryption to take some ...
1
vote
0answers
71 views

Is there a possibility to apply Moni Naor and Adi Shamir's "visual cryptography" on text ( paragraph)?

[Instead of two images I want to consider two paragraphs(text) when combined should give me a secret message] In their algorithm, the image has been split into two component images. Each component ...
0
votes
1answer
33 views

How would I go about breaking Playfair cipher with the alphabet and the encrypted message? [closed]

I was wondering how I could crack a Playfair cipher with only the alphabet and the ciphered message. Ive tried looking for tools online, but still no luck.
0
votes
0answers
36 views

Add setup to GPG symmetric

I use GPG symmetric, to encrypt text file. Is it possible to use GPG symmetric, to encrypt a text file, and at the same time, add additional setting to the encrypted file, to give us 2 conditions: ...
0
votes
0answers
27 views

Using same key pairs in several different encryption tools and version

can we use the same key pairs created by an encryption tool, for encryption decryption, in another encryption tool ? for ex, created by hypercrypt, but being used in cryptermite, or maybe within the ...
3
votes
0answers
73 views

Decrypt the same ciphertext to multiple messages of my choice if I can use any key I want to decrypt

In a modern secure encryption scheme, is it possible(both theoretically and practically) to encrypt a message using a key to get the following ciphertext c = Enc(M1,k1) and later find another key so ...
2
votes
1answer
148 views

How to encode and decode message into polynomial form on NTRU

This question is based on a previously asked question. How to make a message into a polynomial on NTRU encryption? I am tasked to implement NTRU with toy parameters such as $N=7$ or $N=11$ and I have ...
0
votes
1answer
100 views

How to solve this decryption algorithm given the encryption algorithm?

Consider the following cryptosystem with plaintexts from the set $M$ and ciphertexts from the set $S$ with $M = S = \{0, 1\}^4$ . A plaintext $P = (P_1, P_2, P_3, P_4)$ is encrypted to a ciphertext $C ...
0
votes
0answers
42 views

Can I map 2 plaintext letters to 1 ciphertext letter?

Plaintext: "abcd" where P1,P2,P3,P4 map to each corresponding letter. And C is the ciphertext where C1,C2,C3,C4 map to each corresponding letter. Keys = (x,y,z) Can I use the following ...
0
votes
1answer
64 views

Evaluate the time of Paillier decryption

If I have 4 kilobytes of Paillier encrypted data, how can I know the time needed to decrypt it?