method

random_key

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Cipher
random_key() public

Generate a random key with OpenSSL::Random.random_bytes and sets it to the cipher, and returns it.

You must call #encrypt or #decrypt before calling this method.

Show source
Register or log in to add new notes.