secure_compressor 1.0.3 copy "secure_compressor: ^1.0.3" to clipboard
secure_compressor: ^1.0.3 copied to clipboard

This is a Dart package that provides utilities for securely encrypting, decrypting, compressing, and decompressing string data using AES encryption and gzip compression

secure-compressor #

secure_compressor is a Dart package that provides utilities for securely encrypting, decrypting, compressing, and decompressing string data using AES encryption and gzip compression.

Features #

  • Encrypt and decrypt string data using AES encryption.
  • Compress and decompress string data using gzip.
  • Combine encryption and compression for secure and efficient data storage and transmission.
  • Save encrypted and compressed data to local storage.
  • Share encrypted and compressed data to media platform device (WA, email, etc).

Installation #

Add the following to your pubspec.yaml file:


dependencies:

secure_compressor: <Latest-Version>

Then, run flutter pub get to fetch the package.

Usages #

Notes

keyString must be 32 character Initialization Vector (IV) [ivString] must be 16 character

Encrypt

Encrypt a string using AES encryption:


final encryptedData = await  SecureCompressor.encrypt(data, keyString, ivString: ivString);

Compress and then encrypt a string:


final compressedAndEncryptedData = await  SecureCompressor.compressAndEncrypt(data, keyString, ivString: ivString);

Decrypt

Decrypt an AES encrypted string:


final decryptedData = SecureCompressor.decrypt(encryptedData, keyString, ivString: ivString);

Decrypt and then uncompress a string:


final uncompressedAndDecryptedData = SecureCompressor.uncompressAndDecrypt(compressedAndEncryptedData, keyString, ivString: ivString);

Save Data to Local Storage

Save data to a local file:


await  SecureCompressor.saveDataToLocal(fileName, data);

Share Data to Media Platform Device (WA, email, etc)

Share data to a media platform device:


await  SecureCompressor.shareFile(fileName, data);

4
likes
0
points
141
downloads

Publisher

unverified uploader

Weekly Downloads

This is a Dart package that provides utilities for securely encrypting, decrypting, compressing, and decompressing string data using AES encryption and gzip compression

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

encrypt, flutter, path_provider, share_plus

More

Packages that depend on secure_compressor