|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Re: Re: Re: Class::DBI - performing action on column before it is used or savedby duct_tape (Hermit) |
| on Dec 19, 2003 at 16:17 UTC ( [id://315923]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I agree, however this isn't for use in checking a password that a user supplied. It's for listing passwords that are stored in the database for an application that manages host information. Which is why I am using Blowfish to encrypt them instead of doing a SHA1 or MD5 hash. Also in this database are IP addresses that have been stored in a packed() format (by a previous developer). So my question also applies to them, and is not just strictly for the passwords. IE:
I suppose I can always make methods like decode_ip, encode_ip, encrypt_password, etc... I just thought it'd be good to have it part of my CDBI class to make sure that the data gets written into the database in the correctly (ie: no passwords accidentally stored unecrypted because of a forgotten method call)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||