SealdAnonymousEncryptionSession class SealdAnonymousEncryptionSession

Represents an anonymous encryption session, with which you can then encrypt / decrypt multiple messages / files. This should not be created directly, and should be retrieved with SealdAnonymousSdk.createAnonymousEncryptionSession.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The ID of this encryption session.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decryptFile(Uint8List encryptedFile) SealdClearFile
Decrypts an encrypted file into the corresponding clear-text file.
decryptFileAsync(Uint8List encryptedFile) Future<SealdClearFile>
Decrypts an encrypted file into the corresponding clear-text file.
decryptFileFromPath(String encryptedFilePath) String
Decrypts an encrypted file into the corresponding clear-text file.
decryptFileFromPathAsync(String encryptedFilePath) Future<String>
Decrypts an encrypted file into the corresponding clear-text file.
decryptMessage(String encryptedMessage) String
Decrypts an encrypted message string into the corresponding clear-text string.
decryptMessageAsync(String encryptedMessage) Future<String>
Decrypts an encrypted message string into the corresponding clear-text string.
encryptFile(Uint8List clearFile, String filename) Uint8List
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
encryptFileAsync(Uint8List clearFile, String filename) Future<Uint8List>
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
encryptFileFromPath(String clearFilePath) String
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
encryptFileFromPathAsync(String clearFilePath) Future<String>
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
encryptMessage(String clearMessage) String
Encrypts a clear-text string into an encrypted message, for the recipients of this session.
encryptMessageAsync(String clearMessage) Future<String>
Encrypts a clear-text string into an encrypted message, for the recipients of this session.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() String
Serialize the Anonymous EncryptionSession to a string. This is for advanced use. May be used to keep sessions in a cache. WARNING: a user could use this cache to work around being revoked. Use with caution. WARNING: if the cache is accessible to another user, they could use it to decrypt messages they are not supposed to have access to. Make sure only the current user in question can access this cache, for example by encrypting it.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited