simple file encryption using openssl lib crypto