struct
ActiveRecord::Encryption::Message
- ActiveRecord::Encryption::Message
- Struct
- Value
- Object
Defined in:
active_record/encryption/message.crConstant Summary
-
DEFAULT_PROPERTIES =
{ encrypted_data_key: "k", encrypted_data_key_id: "i", compressed: "c", iv: "iv", auth_tag: "at", encoding: "e", }
Constructors
- .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)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #auth_tag : Bytes | Nil
- #bytes_decode(val : String)
- #bytes_encode(val : Bytes)
- #compressed=(compressed : Bool)
- #compressed? : Bool
- #encoding : String | Nil
- #encrypted_data_key : String | Nil
- #encrypted_data_key_id : String | Nil
- #iv : Bytes
- #payload : Bytes
- #string_encode(val : String)
- #to_json
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)
#