Can you please elaborate on the purpose of such encryption?
If you need to store a password, you'd better store a hash (one-way crypto function) and check it than decrypt it back (because using hashes makes it cryptographically impossible to get the original passwords from the database, especially if you salt the passwords). I would recommend Crypt::Eksblowfish::Bcrypt module for hashing passwords.
If you just need to encrypt arbitrary data, choose a well-known crypto algorythm (Crypt::Blowfish, for example, but there are many others) and hide the key instead of the algorythm: otherwise your algorythm may probably contain some (yet) undiscovered vulnerabilities.
Edit: corrected typoIn reply to Re: Please Help: encryption of column before uploading to DB
by aitap
in thread Please Help: encryption of column before uploading to DB
by david_lyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |