using openssl to generate key of random bytes of KEY_LEN length