app/models/concerns/encryptable.rb
def decrypt(encrypted_data_hex, key_hex, iv_hex)
    encrypted_data_bytes = hex_to_bytes(encrypted_data_hex)
    key = hex_to_bytes(key_hex)
    iv = hex_to_bytes(iv_hex)
    decrypt_bytes(encrypted_data_bytes, key, iv)
  end
# Decrypts hex-encoded encrypted data string using a 256-bit key represented
# as a 64 character hexadecimal string and a 128-bit iv represented as a 32
# character hexadecimal string.
# The `decrypt` returns the decrypted data string.
Decrypts hex-encoded encrypted data string using a 256-bit key represented
as a 64 character hexadecimal string and a 128-bit iv represented as a 32
character hexadecimal string.
The `decrypt` returns the decrypted data string.
Decrypts hex - encoded encrypted data string using a 256 - bit key represented as a 64 character hexadecimal string and a 128 - bit iv represented as a 32 character hexadecimal string . The ` decrypt ` returns the decrypted data string .
def decrypt(encrypted_data_hex, key_hex, iv_hex)
    encrypted_data_bytes = hex_to_bytes(encrypted_data_hex)
    key = hex_to_bytes(key_hex)
    iv = hex_to_bytes(iv_hex)
    decrypt_bytes(encrypted_data_bytes, key, iv)
  end
def decrypt ( encrypted_data_hex , key_hex , iv_hex ) encrypted_data_bytes = hex_to_bytes ( encrypted_data_hex ) key = hex_to_bytes ( key_hex ) iv = hex_to_bytes ( iv_hex ) decrypt_bytes ( encrypted_data_bytes , key , iv ) end
Decrypts hex-encoded encrypted data string using a 256-bit key represented
as a 64 character hexadecimal string and a 128-bit iv represented as a 32
character hexadecimal string.
Decrypts hex - encoded encrypted data string using a 256 - bit key represented as a 64 character hexadecimal string and a 128 - bit iv represented as a 32 character hexadecimal string .
encrypted_data_hex
key_hex
iv_hex