RC4 Encryption for newLISP

Notices and updates
Locked
kinghajj
Posts: 30
Joined: Sun Jul 15, 2007 2:37 pm

RC4 Encryption for newLISP

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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Good stuff.

I think this would be good primitive!

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

kinghajj
Posts: 30
Joined: Sun Jul 15, 2007 2:37 pm

Post by kinghajj »

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

Locked