Added encrypt and decrypt