createEncryptionSession method
SealdEncryptionSession
createEncryptionSession(
- List<
SealdRecipientWithRights> recipients, { - String? metadata,
- bool useCache = true,
Create an encryption session, and returns the associated SealdEncryptionSession instance,
with which you can then encrypt/decrypt multiple messages.
Warning: if you want to be able to retrieve the session later,
you must put your own Seald ID in the recipients
argument.
recipients
- The Seald IDs of users who should be able to retrieve this session.
metadata
- Arbitrary metadata string, not encrypted, for later reference. Max 1024 characters long.
useCache
- Whether or not to use the cache (if enabled globally).
Returns the created SealdEncryptionSession instance.
Implementation
SealdEncryptionSession createEncryptionSession(
List<SealdRecipientWithRights> recipients,
{String? metadata,
bool useCache = true}) {
return SealdEncryptionSession._fromC(_createEncryptionSession(recipients,
metadata: metadata, useCache: useCache)
.pointer());
}