method
encrypt
v2_2_9 -
Show latest stable
- Class:
OpenSSL::Cipher
encrypt(*args)public
Initializes the Cipher for encryption.
Make sure to call Cipher#encrypt or Cipher#decrypt before using any of the following methods:
- key=, iv=, random_key, random_iv, pkcs5_keyivgen
Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, 1).