Method: Botan::Cipher.encryption

Defined in:
lib/botan/cipher.rb

.encryption(algo) ⇒ Botan::Cipher

Creates a new cipher instance for encryption.

Parameters:

  • algo (String)

    the algorithm to use (example: AES-128/CTR-BE)

Returns:



42
43
44
# File 'lib/botan/cipher.rb', line 42

def self.encryption(algo)
  Cipher.new(algo, encrypt: true)
end