For my purpose, I used MySQL as the db and used the AES_ENCRYPT function. Not always the best answer, but was sufficient for my use. I needed to eventually retrieve the original value, not just compare md5 stuff.
The various databases generally have a builtin password hashing function or two, but if you want portability to another database, you could use one of the one-way methods in Perl before you insert (as per your original request). crypt uses DES encryption should be available and does well enough. It's what *nix systems used for a long time. These days there's better ways. The new popular way is probably MD5 [1] but I've heard of another newer, harder, better, faster, stronger (or something) one, but can't remember it's name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.