encryptor and decrypting of messages