Fixed encryption

Encryption wasn't working properly when saving passwords, it is now.