class
ActiveRecord::Encryption::MessageSerializer
v7.0.0 -
Show latest stable
- Superclass: Object
A message serializer that serializes Messages with JSON.
The generated structure is pretty simple:
{ p: <payload>, h: { header1: value1, header2: value2, ... } }
Both the payload and the header values are encoded with Base64 to prevent JSON parsing errors and encoding issues when storing the resulting serialized data.
Files
- activerecord/lib/active_record/encryption/message_serializer.rb