Jamey Cribbs
4/1/2005 8:36:00 PM
rpardee@comcast.net wrote:
>Hey All,
>
>I've got to write a script that will contain a password in it & would
>like to make at least a token effort at obfuscating (if not actually
>encrypting) it.
>
>It looks to me like the only encrypt-y thing in the standard libs is
>String.crypt, which does a one-way hash. Is that right? So it's
>looking to me like I can Base64.encode it, or else download crypt-fog
>or some such thing.
>
>
>
I actually just wrote a pure-Ruby Vignere cipher encryption routine for
the next version of KirbyBase. The Vignere cipher is a substituion
cipher, like rot13, but it is a little more secure because it uses a key
to determine substition. Still not very secure, but something about the
name and the fact that it was developed hundreds of years ago appealed
to me. :-)
Anyway, if you are interested, I could email you the code. It's not
pretty, but it works.
Jamey Cribbs
Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.