in reply to Encryption and decryption using different keys
I need to encrypt a short string (less than 80 characters probably)...
-- Bruce Schneier in Applied Cryptography
Purple Monkey Dishwasher
Don't encrypt arbitrary strings, mmmmkay?
"It is foolish to encrypt arbitrary strings-not only those sent by untrusted third parties, but under any circumstances at all."-- Bruce Schneier in Applied Cryptography
If these strings are sent in by users (or can be eavesdropped on by a Bad Person), you open yourself up to a known-plaintext-ciphertext attack. If you have taken precautions to foil Eve and generate the strings themselves, ignore this post.
redmistPurple Monkey Dishwasher
|
---|
In Section
Seekers of Perl Wisdom