note
redmist
<i>
I need to encrypt a short string (less than 80 characters probably)...
</i>
<p>
Don't encrypt arbitrary strings, mmmmkay?
</p>
<font color="green">
"It is foolish to encrypt arbitrary strings-not only those sent by untrusted third parties, but under any circumstances at all."
<br>
-- Bruce Schneier in <i>Applied Cryptography</i>
</font>
<p>
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.
</p>
<a href="/index.pl?node=redmist&lastnode_id=1072">redmist</a><br>
<font color="#440044"><b>Purple Monkey Dishwasher</b></font>
109348
109348