Flowdock
method

iv=

Importance_1
iv=(p1) public

Sets the cipher IV. Please note that since you should never be using ECB mode, an IV is always explicitly required and should be set prior to encryption. The IV itself can be safely transmitted in public, but it should be unpredictable to prevent certain kinds of attacks. You may use Cipher#random_iv to create a secure random IV.

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

If not explicitly set, the OpenSSL default of an all-zeroes (“\0”) IV is used.

Show source
Register or log in to add new notes.