/chiffre

🦀 RSA file encryption, decryption and key pair generation.

Primary LanguageRust

chiffre

Description

chiffre helps you generate RSA key pairs as well as encrypt or decrypt files.

Installation

Homebrew

brew tap lucagoslar/homebrew-repo
brew install lucagoslar/homebrew-repo/chiffre

Usage

If no output flag, -o <PATH> or --output <PATH>, was provided it defaults to your current location.

In case you already built and linked chiffre, replace cargo run -- with chiffre.

Key pair generation

cargo run -- -k <SIZE>

-k or --keygen only accepts integers larger than 0. Passing values smaller than 20 will result in chiffre exiting early and returning an error.

File encryption

cargo run -- -i <FILE> --pub <FILE>

Note: Your key pair must be of a minimum length of 496 bits.

File decryption

cargo run -- -i <FILE> --prv <FILE>