newLISP Fan Club

Forum => newLISP newS => Topic started by: kinghajj on December 24, 2007, 12:38:31 AM

Title: RC4 Encryption for newLISP
Post by: kinghajj on December 24, 2007, 12:38:31 AM
//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.
Title:
Post by: cormullion on December 24, 2007, 02:26:06 AM
Good stuff.



I think this would be good primitive!
Title:
Post by: Lutz on December 24, 2007, 05:36:59 AM
Look also into the crypto.lsp module at  http://newlisp.org/code/modules/ . There you can find SHA1, MD5 and HMAC encryption.



Lutz
Title:
Post by: kinghajj on December 24, 2007, 11:51:48 AM
Those are hash functions, not encryption algorithms, but they are still useful.