FLUTTER ECOSYSTEM

webdastur/file_cryptor

Flutter 文件加密器

file_cryptor 项目封面
Stars
14
Forks
2
最近推送(UTC)
2023年6月15日
项目状态
未归档
Abdulaminkhon Khaydarov GitHub avatar
GITHUB User

Abdulaminkhon Khaydarov ↗

24 y.o Software Engineer

Beeline UzbekistanUzbekistan官方网站 ↗
语言Dart

此仓库发布的插件

使用的依赖

依赖清单 6 项
  • flutter{"sdk":"flutter"}
  • encrypt^5.0.1
  • path^1.8.3
  • meta^1.9.1
  • archive^3.3.7
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

🔏 file_cryptor

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

Getting Started

⚙️Installation

Add to your pubspec.yaml:

dependencies:
  file_cryptor: <last_version>
📜Example
void main() async {  
  FileCryptor fileCryptor = FileCryptor(  
	  key: "Your 32 bit key.................",  
	  iv: 16,  
	  dir: "example",  
  );  
  
  File encryptedFile = await fileCryptor.encrypt(inputFile: "video.mp4", outputFile: "video.aes");  
  print(encryptedFile.absolute);  
  
  File decryptedFile = await fileCryptor.decrypt(inputFile: "video.aes", outputFile: "video.mp4");  
  print(decryptedFile.absolute); 
}

💻 Output

File: '<your_platform_path>\example\video.aes'
File: '<your_platform_path>\example\video.mp4'
✉️ Telegram Contact: webdasturuz