PkEncryption class final
Used for encrypting messages with public key cryptography.
Used in Matrix's key backup and cross-signing features. Reference: https://spec.matrix.org/latest/client-server-api/#cross-signing
Constructors
- PkEncryption.fromPublicKey(Curve25519PublicKey key)
-
Create a new PkEncryption using a public key.
factory
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
-
encrypt(
String message) → PkMessage - Encrypt a message using the public key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited