搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.3

file_cryptor

FileCryptor 用於加密和解密檔案(PDF、MP3、MP4、PNG 等)。

AndroidiOSmacOSWindowsLinux
近 30 天下載
105
喜歡數
45
Pub 分數
140

安裝套件

flutter pub add file_cryptor

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

FileCryptor 是一個專為加密和解密各種檔案類型(包括 PDF、MP3、MP4、PNG 等)設計的 Flutter 套件。它透過利用加密方法來保護敏感資料,實現多平台的安全檔案處理。該套件適用於需要離線檔案安全的應用場景,如文件儲存、媒體保護或私人資料管理。支援 Android、iOS、macOS、Windows 和 Linux,確保加密工作流程在跨平台環境中的一致性。透過 pub.dev 集成,簡化了在 Flutter 專案中的設定與使用。

適用情境

  • 安全文件存儲
  • 媒體檔案保護
  • 私人資料加密
  • 跨平台文件安全
  • 離線資料保密性

主要特色

  • 支援多種檔案格式
  • 跨平台相容性
  • 簡單的加密/解密 API
  • 安全的文件處理
  • 與 Flutter 的輕鬆整合

適合對象

  • 需要檔案級加密的應用程式
  • 開發安全儲存解決方案的開發者
  • 包含敏感用戶數據的項目
  • 跨平台應用程式
  • 注重隱私的軟體

使用建議

  • 需要謹慎管理金鑰
  • 效能可能會因大型檔案而異
  • 無內建金鑰備份機制
  • 可用文件有限
  • 依賴底層加密庫

原始 README

以下為關聯原始碼儲存庫的 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

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案