Questions tagged [one-time-pad]

A cipher which uses a different encryption key every time, as long as the message. The key is XOR'ed with the message to render the cipher text which can then be XOR'ed with the same key to get the plain text.

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

Purpose of modulus in one-time pad?

I have the following question and don't really understand it. I thought OTP offers perfect secrecy, why do we need modulus? Can somebody please help me answer the question? $Z_n$ denotes the ring of ...
1
vote
0answers
74 views

One time pad, Proof for a problem

We know 2 plaintexts of length L and 2 ciphertexts of length L(we don't know which one belongs which), assuming each given ciphertext is generated by encrypting one of the given plaintexts by XOR'ing (...
0
votes
0answers
52 views

cracking a one time pad using key reuse

There is a one time pad which works as follows: given message "hello" and key "asdfg", it produces "hwoqu". It only works with the 26 english letters. The output is (h(7) ...
0
votes
1answer
73 views

One-time pad without zero: proof check

I started learning cryptography and tried to work through this problem: consider one-time pad where $\mathcal{M}=\mathcal{C}=\{0,1\}^n$ and $\mathcal{K}=\{0,1\}^n\setminus 0^n$ (call this scheme $\Pi$)...
1
vote
3answers
82 views

Derivating random numbers from random numbers

If I have a "truly random number" $K$ of $L$ bits (whatever "truly random" means... is it a value from a normal distribution a truly random number, or only uniform distributions ...
0
votes
0answers
20 views

Decrypting two time pad using the Vigenère scheme

If I define that $$m\oplus k :=(m+k) \mod 26$$ where A is 0 and Z is 25. How do I efficiently/properly decrypt if I was given two-time pad ciphered texts? I know that $m_1\oplus m_2 = c_1\oplus c_2$. ...
2
votes
1answer
1k views

Is OTP still perfectly secure if we limit message and key space

If we have a message space M {0,1,2,3,4,5,6} and likewise keyspace is K = {0,1,2,3,4,5,6} (generator choosen uniform keys k) We define our encryption to be the XOR of their bitwise rep on K and M ...
6
votes
3answers
2k views

Why is mod calculation necessary in a one time pad encryption?

Considering the English alphabets to be encrypted why is the computation of mod 26 necessary after adding the pad to plain text. Is it just that it adds to another level of encryption or is it used so ...
2
votes
1answer
129 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 ...
0
votes
1answer
65 views

What is a ciphertext only attack and how OTP is unbreakable using this attack

I was wondering that what actually is cipherText-only attack and how the One Time Pad Encryption cant be broken by this attack?
0
votes
1answer
114 views

One-time-pad Encryption in C

I have been messing around with cryptography (for recreational use), and I created my own one-time-pad encryption script in C. Now, with that being said, I freely admit that I am by no means a ...
1
vote
1answer
41 views

Securing counter value for OTP [closed]

I'm working on a project that needs an OTP based on counter value and needs some advice. Suppose we encrypt the counter value C in this way and let's say our sending packet is P = AES(key,C). If ...
2
votes
2answers
74 views

Combining ECC and AES for a Web Chat system

I am working on a portable secure chat via desktop or mobile, which adopts OTP plus asymmetric encryption. The idea goes like this: Suppose that Alice and Bob are clients, and the server is run by ...
2
votes
1answer
71 views

Multiplication encryption with a small number

Given a big number $x$(1024 bits) and a large prime $N$($N>x$), I want to encrypt it with a smaller number $y$(128 bits). $$Enc(x) = xy \mod{N}.$$ Is it safe? If not, how do I evaluate its leakage?
3
votes
2answers
92 views

Using $key^{th}$ multiple of $\pi$ as a one-time pad

With a key $k$ of sufficient length, say 128 bits, is it possible to use $k^{th}$ multiple of $\pi$ as a one-time pad? Please enlighten on the security as well as practical aspects (only if secure of ...
2
votes
1answer
208 views

AES or One-time-pad for encrypting a single 128bit block?

I just started my network security course and came across the below question. Could some one help me here. User A wish to send a 128-bit secret message, S, to user B. As the preliminary step, both A ...
1
vote
3answers
336 views

Is collision resistant hash enough for one-block counter mode?

Let $H:\{0,1\}^*\rightarrow \{0,1\}^\ell$ be a collision resistant hash function (CRH), and let $\Pi = (\mathsf{enc,dec})$ be an encryption scheme with the following properties: $\Pi.\mathsf{enc}: \...
1
vote
1answer
48 views

Is it possible to attack a one-time pad encrypting only slightly more than its length?

This question might be uncannily similiar to this one posted over 6 years ago, but the structure is completely different. It's written nearly everywhere that OTPs are incapable of sustaining more than ...
2
votes
1answer
87 views

basic question regarding two-time pad attack

Dan Boneh's Crypto 1 Course includes a lesson on stream ciphers with the following slide: He asks the question: And the answer he gives is $m \oplus p$, which is why this is insecure. But I don't ...
0
votes
0answers
73 views

If $\mathrm{P}=\mathrm{NP}$ were efficiently solvable, how would Internet security work? [duplicate]

Suppose $\mathrm{P}=\mathrm{NP}$ were proven and a practical low-degree (2 or 3) polynomial algorithm was found before widespread quantum key distribution was available. How would internet security ...
1
vote
2answers
58 views

One Time Pad Low Bandwidth Doubt from the book

Following is a sentence from the book "Cryptography and Network Security - Principle and Practices" by William Stallings [Fourth Edition] Sentence - " ... the 'one-time pad' is of ...
0
votes
2answers
3k views

How to decrypt two images encrypted using XOR with the same key?

I am trying to solve the following puzzle from CryptoHack involving two images encrypted with the same key: I've hidden two cool images by XOR with the same secret key so you can't see them! lemur....
0
votes
0answers
98 views

One-time pad: Using Cribdrag for Decipherment and Key Recovery

I have been given three different strings: ...
2
votes
3answers
243 views

Can anyone explain to me the difference between the OTP (one-time pad) and Vernam Cipher?

I heard they are very similar, although there are subtle differences between the two.
0
votes
1answer
46 views

Pencil & paper encryption, some thoughts on polyalphabetic techniques [closed]

I have an idea for a simple cipher that builds on old techniques that I thought I would share with this group. It has probably been done but I have not been able to find a reference to it. Given two ...
4
votes
1answer
95 views

Does a one-time pad of digits 0-9 have any weaknesses?

I'm working on one of those unsolved puzzles, and one theory I have is that one or more sections of it are using digits of pi, e, or some other irrational number as a one-time pad. (The obvious ...
1
vote
2answers
89 views

Stream cipher vs OTP, with /dev/urandom and secure key exchange

My application will work in an office setting where a user can directly and securely collect a long One Time Pad. For example, it may be 16Gb on a USB drive. This would fill me with joy except that ...
0
votes
0answers
45 views

Practical One Time Pad Based on Diminished Rate of Random Number Exhaustion [duplicate]

One reason why One Time Pads are impractical is that sender and receiver need copies of the same random numbers. This can quickly exhaust the set of numbers if communication is frequent. Proposal: The ...
-2
votes
2answers
218 views

Is this a provably secure scheme to encrypt a private key?

I got this idea to use the features of the one-time pad, an encryption technique that provably cannot be cracked, but this time applied to encrypt a private key. A possible application could be to ...
0
votes
1answer
43 views

Having two messages and a result ciphertext, is it possible to know which one was encrypted using One Time Pad?

I have two messages $m_1$ and $m_2$ and a result ciphertext $c$, one-time pad was used to create the ciphertext $c$, is it possible to know which message was used to generate the ciphertext $c$?
2
votes
1answer
51 views

Crypto scheme to map data to users in a way that is anonymous to database server

I am trying to finish a paper on censorship resistant data-sharing systems in semi-centralized ways. I know the below threat model can be mitigated by using decentralized system, but I am looking for ...
0
votes
0answers
88 views

How secure is the encryption with OTP and an OneRNG?

I bought an HWRND last week. What do you think, how secure is the encryption with that and the OTP? See the OneRNG theory of operation here.
1
vote
1answer
126 views

How to combine a PRG and a non-PRG to design a PRG?

I'm trying to solve the following exercise: Let $G_1, G_2: \{0,1\}^\lambda \to \{0,1\}^{\lambda + l}$ be two deterministic functions mapping $\lambda$ bits into $\lambda + l$ bits (for $l \ge 1$). You ...
4
votes
2answers
822 views

One time pad - how is the difference in length between the plain text & the OTP handled?

Since OTP have to be agreed upon in advance, they may be longer than the plaintext. So in this case, how is the encryption done? Is the OTP truncated to the same length of the plaintext before ...
0
votes
0answers
80 views

How does the entropy of $r$ influence the security of the one-time pad $F_k(r) \oplus m$?

In an one-time pad scheme, $s \oplus m$ is uniformly random for any $m \in \{ 0,1 \}^\ell$ if $s$ is uniform in $\{ 0,1 \}^\ell$. By the security of PRF, it seems to be secure to replace the truly ...
0
votes
0answers
97 views

GPG + OTP--Would that be authenticated encryption?

Here is a GPG message, signed and encrypted (strictly for demonstration, with test keys): ...
-2
votes
1answer
155 views

Does the following protocol of secure a matrix satisfy one-time-pad?

Problem Definition: Alice wants to send a matrix $MR_A$ which encrypts its original private matrix $M_A$ ($M\times N$ size, all elements in $M_A$ is in {0,1,2,3,4,5}) to Bob without letting Bob knows ...
1
vote
1answer
92 views

Authenticated, Quantum-resistant GPG2?

GPG2 does not provide authentication. It still uses SHA-1 by default. It does not seem to get any stronger as time goes by. If one were to pass a randomly-generated symmetric key (from a TRNG) over ...
3
votes
2answers
3k views

Can you use repeating numbers like $\pi$, and $e$, as the Key to OTP ciphers?

Since $\pi$ and other numbers repeat could you use them as a OPT key. Ex: a 5 character message is sent and the first 5 digits of $\pi$ are used. after that the next $X$ number of digits are used and ...
-1
votes
1answer
101 views

Security of the OTP

In ciphertext only attack, if I assume that the ciphertext is obtained by an OTP, then for a short length of ciphertext I can search over a random keystream of the same length and discover a plaintext ...
-2
votes
2answers
221 views

Will OTP provide quantum resistance under 5 conditions?

We already have quantum computing, but when quantum computing becomes commercially available there is a problem for many but not all encryption algorithm. The One-Time-Pad or OTP is the one and only ...
1
vote
0answers
80 views

Can an observer deduce a pre-shared key used multiple times on (nearly) random messages?

Imagine you took a standard one-way hashing algorithm (like SHA-256), and you implement it in hardware using simple logic gates. Now, replace each logic gate with an equivalent reversible logic gate (...
3
votes
2answers
139 views

Is the one-time pad secure if the key is computed so the ciphertext will consist only of "A"?

I recently learned about the one-time pad method, which has perfect security if the following conditions are met : The key must be truly random. The key must be at least as long as the plaintext. The ...
0
votes
2answers
393 views

How to convert random bytes into blocks of numbers without weakening entropy?

Let's say you have a, or several random byte(s) 0-255 and would like to derive numbers 0-9 for a One Time Pad (OTP) of them. What would be a non-naïve approach to represent 256 possible values onto 10 ...
0
votes
0answers
52 views

Attack on Many Time Pad

I have 7 ciphertexts that have been XORed with the same key. I'm writing a program to figure out what the plaintexts are and possibly maybe recover the key. I have managed to convert the HEX ...
1
vote
1answer
92 views

One-time pad with public key changes

Let $k$ by a randomly generated $n$ bit string, and $m$ a $n$ bit message. Then putting $c = m \oplus k$ is the one-time pad and is perfectly secure. Now assume the transmitter and receiver wanted ...
0
votes
0answers
30 views

Are there any known problems performing a One-time pad with 2 keys stored separately - AKA 2 part Symmetric key exchange over TLS

If this is something that already has a name, please tell me to look at that, but I have not been able to find one yet. I am considering this process for storing some data securely. I want to ...
2
votes
1answer
151 views

How many perfect secrecy systems are there?

How many non-trivial*, interesting perfect secrecy systems are there other than the one-time-pad? Does it seem that the one-time-pad and perfect secrecy are synonymous, but are there any other ...
0
votes
1answer
143 views

How to Share One Time Pad? [duplicate]

Supposing I wanted to send a one-time pad to a friend. What would be a good way to do that, supposing that it could be intercepted? At first blush, encrypting it would seem safe, because the ...
-2
votes
1answer
204 views

Which is more secure, AES CTR or OTP with generate key?

My idea of the OTP is to generate from 50 letters (5 words, each 10 letters) a new pad of 2000 random letters, then attach user email to the pad end (to make it unique). The keywords and the pad will ...

1
2 3 4 5
8