added encryptor and decryptor