util library

Functions

decryptFileBytes({required File file, required String encryptionKey}) List<int>
Decrypt and return the contents of the given file, using the given encryptionKey as a list of bytes.
decryptFileString({required File file, required String encryptionKey}) String
Decrypt and return the contents of the given file, using the given encryptionKey as a string.
encryptBytes({required List<int> bytes, required File outputFile, String? encryptionKey}) String
Encrypt the given bytes to the given outputFile, and return the encryption key.
encryptFile({required File inputFile, required File outputFile, String? encryptionKey}) String
Encrypt the given inputFile into the given outputFile, and return the encryption key.
encryptString({required String string, required File outputFile, String? encryptionKey}) String
Encrypt the given string to the given outputFile, and return the encryption key.
generateEncryptionKey() String
Generate a secure encryption key.