PayloadCipher class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
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.
inherited
Static Methods
-
encodePayload(Map<String, dynamic> data, {required Nonce nonce, ChaCha20? chaCha20, bool compressed = true})
→ String
-
Encodes the payload with a given nonce and key. Compresses the content if a key is present before encryption.
-
getDecodedPayload(String input, Nonce nonce, ChaCha20? chaCha20, {bool compressed = true})
→ Map<String, dynamic>
-
decrypt and decompress target input.