encryptFile function
Encrypt the given inputFile
into the given outputFile
, and return the
encryption key.
Implementation
String encryptFile({
required final File inputFile,
required final File outputFile,
final String? encryptionKey,
}) =>
encryptBytes(
bytes: inputFile.readAsBytesSync(),
outputFile: outputFile,
encryptionKey: encryptionKey,
);