class OsslCryptor::Generator
Cipher instance generator.
Constants
- DEFAULT_KEY_IV_HASH
default hash algorithm.
- DEFAULT_PASS
default pass.
Public Class Methods
generate_cipher(mode)
click to toggle source
generate cipher instance. @param [String] mode crypt mode. @return [Cipher] cipher instance.
# File lib/ossl_cryptor/generator.rb, line 18 def self.generate_cipher(mode) cipher = OpenSSL::Cipher.new(mode) cipher end
generate_random_key_iv(mode)
click to toggle source