4 stable releases
1.0.3 | Jan 25, 2025 |
---|---|
1.0.2 | Jan 16, 2025 |
#426 in Compression
472 downloads per month
14KB
90 lines
Encryptify Library
Encryptify is a library for encrypting and decrypting files and folders. It ensures the confidentiality of your data by using AES encryption
.
For folders, it compresses them into a ZIP archive before encrypting.
Features
-
File Encryption/Decryption: Securely encrypt and decrypt individual files.
-
Folder Encryption/Decryption: Compress folders into ZIP archives before encrypting them.
-
AES Encryption: Supports AES-256 for strong security.
Usage
This library crate exposes 4 functions for encryption and decryption and also provides a utility function to zip a folder.
-
encrypt_file: Encrypts a file using AES encryption. The new file will have a
.encrypted
extension. -
decrypt_file: Decrypts an encrypted file using AES decryption. The new file will have a
.decrypted
extension. -
encrypt_folder: Compresses a folder into a ZIP archive and encrypts it using AES encryption. The new file will have a
.zip.encrypted
extension. -
decrypt_folder: Decrypts an encrypted ZIP archive and extracts it into a folder. The decrypted folder will not have anything appended to its name.
-
zip_folder: Compresses a folder into a ZIP archive. The new file will have a
.zip
extension.
Dependencies
~7.5MB
~141K SLoC