Encrypto is a command-line utility to encrypt and decrypt directories. It compresses the contents to protect and then encrypts the archive with AES-GCM to produce a single .crypt file.
- Key derivation via PBKDF2 (SHA-256, 100,000 iterations) with a 16-byte salt.
- Symmetric AES-256 encryption in GCM mode with a 12-byte initialization vector (IV).
- The resulting file is structured as:
salt || IV || tag || ciphertext. - For interoperability, the encrypted content is a ZIP archive of the source directory.
Encrypts a directory.
encrypto encrypt -s <directory> -p <password> [-d <output_file>]Decrypts a .crypt file.
encrypto decrypt -s <file.crypt> -p <password> [-d <destination_directory>]-s,--source: path to the source directory or file.-p,--password: password used to derive the key.-d,--destination: output path. Forencrypt, this is the generated file (default<source>.crypt). Fordecrypt, this is the destination directory (default a folder with the same name as the file without extension).
This project is licensed under the MIT license.