cipher.iv = string â string
Instance Public methods
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 #random_iv to create a secure random IV.
Only call this method after calling #encrypt or #decrypt.
If not explicitly set, the OpenSSL default of an all-zeroes (â\0â) IV is used.
Please login to continue.