master password encryption and decryption