Encryption and decryption of passwords