mei GitHub Workflow Status Crates.io LICENSE

A command line tool for encryption file, encrypt by block using aes-256-gcm

Install

Binary

Download the binary from the release page

Cargo

bash cargo install mei

Usage

Encryption file

bash mei -e foo.file

Decryption file

bash mei -d foo.file.mei

File structure

Description:

+---------+-------------+------+-------------+------+ | Version | Name Length | Name | Info Length | Info | +---------+-------------+------+-------------+------+ | 1 | 2 | n | 2 | n | +---------+-------------+------+-------------+------+

Encrypted data:

Read the block in a loop until the end

+-------+--------------+-------+ | Nonce | Chunk Length | Chunk | +-------+--------------+-------+ | 12 | 2 | n | +-------+--------------+-------+