Added encryption functions, using OpenSSL