http://www.perlmonks.org?node_id=961433


in reply to Re^2: Password Encryption and Decryption
in thread Password Encryption and Decryption

If you need to authenticate your users against a LDAP (like Active Directory), you have not to store user's passwords at all. You need not to store them.

You need to use LDAP authentication for your appliation, when the user insert the login/password pair, you forward these info to Active Directory and if it confirms you know that the user is authenticated in that system.