Page 1 of 1

RC4 Encryption for newLISP

Posted: Mon Dec 24, 2007 8:38 am
by kinghajj
http://kinghajj.ath.cx/rc4-nl.tar.bz2

Code: Select all

; example usage
(rc4-encrypt (rc4-encrypt "Hello!" "World"))
; => "Hello!"
RC4 is much better than a one-time pad for practical applications.

I would have implemented this is a primitive, builtin function, but the documentation doesn't cover that. It'd be much easier to do that then to depend on a library whose name is different on different platforms.

Posted: Mon Dec 24, 2007 10:26 am
by cormullion
Good stuff.

I think this would be good primitive!

Posted: Mon Dec 24, 2007 1:36 pm
by Lutz
Look also into the crypto.lsp module at http://newlisp.org/code/modules/ . There you can find SHA1, MD5 and HMAC encryption.

Lutz

Posted: Mon Dec 24, 2007 7:51 pm
by kinghajj
Those are hash functions, not encryption algorithms, but they are still useful.