EncryptedPayload class
Immutable value object returned by CryptoKit.encrypt.
The combined string (ivBase64:ciphertextBase64) is what you store in
Firestore / your database.
Constructors
- EncryptedPayload.create({required String iv, required String cipherText, required String combined})
-
Internal constructor used by
CryptoKit.encryptto build this object.const - EncryptedPayload.fromCombined(String combined)
-
Parses a
combinedstring produced byCryptoKit.encrypt.factory
Properties
- cipherText → String
-
The encrypted value, Base64-encoded.
final
- combined → String
-
A portable string:
ivBase64:ciphertextBase64.final - hashCode → int
-
The hash code for this object.
no setterinherited
- iv → String
-
The Initialisation Vector, Base64-encoded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited