Skip to content

encryptFile

fun encryptFile(clearFile: ByteArray, filename: String): ByteArray

Encrypt a clear-text file into an encrypted file, for the recipients of this session.

Return

A ByteArray of the content of the encrypted file.

Parameters

clearFileA ByteArray of the clear-text content of the file to encrypt.
filenameThe name of the file to encrypt.

Throws

SealdException