method
generate_iv
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Encryption::Cipher::Aes256Gcm
generate_iv(cipher, clear_text)private
No documentation available.
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 87
def generate_iv(cipher, clear_text)
if @deterministic
generate_deterministic_iv(clear_text)
else
cipher.random_iv
end
end