crypt for for encryption/decryption algorithm