# Interface: AnonymousEncryptionSession

# Table of contents

# Properties

# Methods

# Properties

# sessionId

sessionId: string

The sessionId for this EncryptionSession instance.

# Methods

# decryptMessage

decryptMessage(encryptedMessage): Promise<string>

Decrypts an encrypted message string into the corresponding clear-text string.

# Parameters

Name Type
encryptedMessage string

# Returns

Promise<string>


# encryptFile

encryptFile<T>(clearFile, filename, opts?): Promise<T>

Encrypts a file

# Type parameters

Name Type
T extends string | Blob | ReadableStream<any> | Readable | Buffer

# Parameters

Name Type Description
clearFile T
filename string
opts? Object
opts.fileSize? number Optional. Needed when using stream
opts.signal? AbortSignal -

# Returns

Promise<T>


# encryptMessage

encryptMessage(clearString): Promise<string>

Encrypts a clear-text string into an encrypted message, for the recipients of this session.

# Parameters

Name Type
clearString string

# Returns

Promise<string>