key=

cipher.key = string â string
Instance Public methods

Sets the cipher key. To generate a key, you should either use a secure random byte string or, if the key is to be derived from a password, you should rely on PBKDF2 functionality provided by OpenSSL::PKCS5. To generate a secure random-based key, #random_key may be used.

Only call this method after calling #encrypt or #decrypt.

doc_ruby_on_rails
2015-04-24 22:32:48
Comments
Leave a Comment

Please login to continue.