One-way encryption, like MD5 works because the way they compare passwords is to MD5 your input and then compare it to the aleady MD5ed password that is in the database. That is why websites like this don't just give you your password when you lose yours, it has to reset it to something and send you that so you can log in and change it. You will need to find some other way to encrypt data if you want to decrypt it later.