Hacker News new | ask | show | jobs
by rob-lag 29 days ago
One-time pad has 2 problems:

(1) The key can only be used once. If you use the same key for multiple different messages it's not secure anymore.

(2) The key has to be the same length as the message.

With those 2 restrictions, OTP is not really that feasible for practical applications.

1 comments

> (1) The key can only be used once.

Sure, and I'm contemplating something like 10 TB of random data as key (I mean hard drives are large these days).

> (2) The key has to be the same length as the message.

I thought that was just a matter of indexing through the (10 TB) of data with each message—picking up in the byte stream where you left off from your previous message.