EncryptionResult class
Container for encrypted data which may contain key deriviation artefacts. Can be converted to Cryppo's serialization format by using the serialize method.
Constructors
-
EncryptionResult.fromComponents({required EncryptionStrategy strategy, required List<
int> cipherText, required EncryptionArtefacts encryptionArtefacts, DerivationArtefacts? derivationArtefacts}) - Container for encrypted data which may contain key deriviation artefacts. Can be converted to Cryppo's serialization format by using the serialize method.
- EncryptionResult.fromSerialized(String serializedPayload)
- Decode a serialized encrypted string into its components.
Properties
-
cipherText
↔ List<
int> -
getter/setter pair
- derivationArtefacts ↔ DerivationArtefacts?
-
derivationArtefacts contains both derivation strategy and artefacts
getter/setter pair
- encryptionArtefacts ↔ EncryptionArtefacts
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strategy ↔ EncryptionStrategy
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → String - Converts the encryption result into Cryppo's serialization format for transfer over the wire.
-
toString(
) → String -
Serialize the encryption result
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited