class ActiveRecord::Encryption::Cipher::Aes256Gcm

def generate_deterministic_iv(clear_text)

def generate_deterministic_iv(clear_text)
  OpenSSL::HMAC.digest(OpenSSL::Digest::SHA256.new, @secret, clear_text)[0, ActiveRecord::Encryption.cipher.iv_length]
end