[ruby-announce] [ANN] crypt-fog 0.1.0

Daniel Berger <[email protected]> Thu, 31 Jul 2003 16:26:43 -0600
Newsgroups gmane.comp.lang.ruby.announce
Organization Qwest
Message-ID <[email protected]>
Hi all,

I'm happy to announce the release of crypt-fog, a simple but effective 
text obfuscator.

Synopsis
========
include Crypt
s = Fog.new("hello",2003)
p s # ";8??B"
p s.decrypt # "hello"

Fog.decrypt(";8??B",2003) # "hello"

Now you can encrypt those DBRC passwords that some of you were worried 
about being in plaintext.  Just don't forget your salt value. :)

Here's the source code to the Fog class for those curious how I achieve 
this marvel of modern cryptography (one string - newlines you may see 
are forced by browser):

\024\035\022$$\321\367 
\030\321\355\321\004%#\032\037\030\273\273\321\321\321\a\366\003\004\37
2\000\377\321\356\321\323\341\337\342\337\341\323\273\273\321\321\321\025\026\027\321\032\037\032%\032\022\035
\032+\026\331$%#\032\037\030\335\025\026\030#\026\026\356\342\344\332\273\321\321\321\321\321\321\361\025\026\
030#\026\026\321\356\321\025\026\030#\026\026\337% 
\020\032\321\273\321\321\321\321\321\321$%#\321\356\321\026
\037\024#*!%\331$%#\032\037\030\335\025\026\030#\026\026\332\273\321\321\321\321\321\321$&!\026#\331$%#\332\27
3\321\321\321\026\037\025\273\273\321\321\321\025\026\027\321\025\026\024#*!%\273\321\321\321\321\321\321&\037
!\022\024\034\331\323\364\333\323\332\337\036\022!,\321-\026-\321\026\321\336\356\321\361\025\026\030#\026\026
\321.\337!\022\024\034\331\323\364\333\323\332\273\321\321\321\026\037\025\273\273\321\321\321\025\026\027\321
% 
\020$\273\321\321\321\321\321\321$\026\035\027\337\032\037$!\026\024%\273\321\321\321\026\037\025\273\273\32
1\321\321\025\026\027\321$\026\035\027\337\025\026\024#*!%\331$%#\335\025\026\030#\026\026\356\342\344\332\273
\321\321\321\321\321\321$%#\337&\037!\022\024\034\331\323\364\333\323\332\337\036\022!,\321-\026-\321\026\321\
336\356\321\025\026\030#\026\026\321.\337!\022\024\034\331\323\364\333\323\332\273\321\321\321\026\037\025\273
\273\321\321\321!#\032'\022%\026\273\273\321\321\321\321\321\321\025\026\027\321\026\037\024#*!%\331$%#\356$\0
26\035\027\335\025\026\030#\026\026\356\361\025\026\030#\026\026\332\273\321\321\321\321\321\321\321\321\321$%
#\337&\037!\022\024\034\331\323\364\333\323\332\337\036\022!,\321-\026-\321\026\321\334\356\321\025\026\030#\0
26\026\321.\337!\022\024\034\331\323\364\333\323\332\273\321\321\321\321\321\321\026\037\025\273\273\026\037\0
25

Ah, the wonders of module_eval()

Enjoy!

Dan