add encrypt() and decrypt()