Class PkEncryption
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
public static class PkEncryption
Methods
|
Edit this page
View Source
Decrypt message with a base64 backup secret key; return UTF-8 text. Throws OlmException for a wrong key.
Declaration
public static string Decrypt(string secret, PkMessage message)
Parameters
Returns
|
Edit this page
View Source
Encrypt UTF-8 plaintext for publicKey.
Declaration
public static PkMessage Encrypt(string publicKey, string plaintext)
Parameters
Returns
|
Edit this page
View Source
Return the public key of a base64 32-byte backup secret key.
Declaration
public static string GetPublicKey(string secret)
Parameters
| Type |
Name |
Description |
| string |
secret |
|
Returns