Class ClientEncryptionService
Client-side encryption service. Uses the same AES-256-GCM format as the server so messages are encrypted end-to-end between client and server.
public sealed class ClientEncryptionService : IMessageEncryptionService
- Inheritance
-
ClientEncryptionService
- Implements
- Inherited Members
Constructors
ClientEncryptionService()
public ClientEncryptionService()
Properties
EncryptDatabaseEnabled
Whether database content should be encrypted at rest (server setting).
public bool EncryptDatabaseEnabled { get; }
Property Value
IsInitialized
public bool IsInitialized { get; }
Property Value
Methods
Decrypt(string)
public string Decrypt(string content)
Parameters
contentstring
Returns
DecryptNullable(string?)
public string? DecryptNullable(string? value)
Parameters
valuestring
Returns
Encrypt(string)
public string Encrypt(string plaintext)
Parameters
plaintextstring
Returns
EncryptNullable(string?)
public string? EncryptNullable(string? value)
Parameters
valuestring
Returns
SetKey(string)
Initialize with the server's encryption key (fetched after login).
public void SetKey(string base64Key)
Parameters
base64Keystring