file_cryptor 0.0.3 copy "file_cryptor: ^0.0.3" to clipboard
file_cryptor: ^0.0.3 copied to clipboard

FileCryptor is for encryption and decryption files. (PDF, MP3, MP4, PNG, ...)

example/example.dart

import 'dart:io';

import 'package:file_cryptor/file_cryptor.dart';

void main() async {
  FileCryptor fileCryptor = FileCryptor(
    key: "Your 32 bit key.................",
    iv: 16,
    dir: "example",
    // useCompress: true,
  );

  File encryptedFile =
      await fileCryptor.encrypt(inputFile: "file.txt", outputFile: "file.aes");
  print(encryptedFile.absolute);

  File decryptedFile =
      await fileCryptor.decrypt(inputFile: "file.aes", outputFile: "file.txt");
  print(decryptedFile.absolute);
}
39
likes
130
pub points
79%
popularity

Publisher

verified publisherwebdastur.uz

FileCryptor is for encryption and decryption files. (PDF, MP3, MP4, PNG, ...)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

archive, encrypt, flutter, meta, path

More

Packages that depend on file_cryptor