crypt and encrypt