Fixed login encryption/decryption