Why would you use encryption to store the passwords? There isn’t such a thing as irreversible encryption, as the point of any encryption system is to allow you to retrieve the data at a later date if you have access to the key.

Authentication systems should be using a hashing algorithm like SHA, or MD5 (with a good salt).