3 ms·
Wouldn’t a random sequence using a seed as the secret be a better choice?
by Koshkin 7y ago
Wouldn’t a random sequence using a seed as the secret be a better choice?
- userbinator 7y agoThat's called a "stream cipher". ;-)
- segfaultbuserr 7y agoYes. If you can build a cryptographically-secure random number generator, which can output a long stream of random bytes from a seed, congrats, you just invented a stream cipher. Just XOR your plaintext and random bytes, and you are good to go.