lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On May 21, 2012, at 7:09 PM, Paco Willers wrote:

> I'll continue my search for pure Lua code that
> encrypts or hashes a password,

Perhaps a relatively slow, pure Lua implementation could be viewed as a feature in that specific case:

http://equi4.com/md5/md5calc.lua
http://luaforge.net/projects/sha1-rsa/


> or create one myself. 

Don't. Use bcrypt or such:

https://github.com/silentbicycle/lua-bcrypt

If you insist doing it yourself, some food for thoughts:

Salted Password Hashing - Doing it Right
http://crackstation.net/hashing-security.htm