Encryption is a one way process unless you use a "Salt" when encrypting. Google this if you are not sure what I mean.
WA have a tutorial on encrypting passwords here: securityassist/ see tutorial number 3 Setting up Log In (Interactive Tutorial) onwards