Class OpenSSL::Cipher::Cipher
In: openssl/ossl_cipher.c
openssl/lib/openssl/cipher.rb
Parent: Object

Methods

Public Instance methods

[Source]

# File openssl/lib/openssl/cipher.rb, line 51
      def random_iv
        str = OpenSSL::Random.random_bytes(self.iv_len)
        self.iv = str
        return str
      end

[Source]

# File openssl/lib/openssl/cipher.rb, line 45
      def random_key
        str = OpenSSL::Random.random_bytes(self.key_len)
        self.key = str
        return str
      end

[Validate]

ruby-doc.org is a community service provided by James Britt and Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.