Encryption/Decryption
const transfer = new Transfer({
name: "My Super File",
type: TransferType.UPLOAD,
});
transfer.setAction(() => {
// Any action to do on onDownloadProgress or onUploadProgress
});
// The API Will return you the file encrypted
const result = await encryptFile(
{ password, algorithm },
file,
{ transfer },
);Last updated