RC4 Encryption for newLISP

Started by kinghajj, December 24, 2007, 12:38:31 AM

Previous topic - Next topic

kinghajj

http://kinghajj.ath.cx/rc4-nl.tar.bz2">//http://kinghajj.ath.cx/rc4-nl.tar.bz2


; 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.

cormullion

#1
Good stuff.



I think this would be good primitive!

Lutz

#2
Look also into the crypto.lsp module at  http://newlisp.org/code/modules/">http://newlisp.org/code/modules/ . There you can find SHA1, MD5 and HMAC encryption.



Lutz

kinghajj

#3
Those are hash functions, not encryption algorithms, but they are still useful.