using openssl to encrypt and decrypt done