struct ActiveRecord::Encryption::Message

Defined in:

active_record/encryption/message.cr

Constant Summary

DEFAULT_PROPERTIES = { encrypted_data_key: "k", encrypted_data_key_id: "i", compressed: "c", iv: "iv", auth_tag: "at", encoding: "e", }

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(payload : Bytes, iv : Bytes, encrypted_data_key : Nil | String = nil, encrypted_data_key_id : Nil | String = nil, compressed : Bool = false, auth_tag : Slice(UInt8) | Nil = nil, encoding : Nil | String = nil) #

def self.new(pull : JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Class Method Detail

def self.new_from_json_pull_parser(pull : JSON::PullParser) #

Instance Method Detail

def auth_tag : Bytes | Nil #

def bytes_decode(val : String) #

def bytes_encode(val : Bytes) #

def compressed=(compressed : Bool) #

def compressed? : Bool #

def encoding : String | Nil #

def encrypted_data_key : String | Nil #

def encrypted_data_key_id : String | Nil #

def iv : Bytes #

def payload : Bytes #

def string_encode(val : String) #

def to_json #