Skip to main content

A simple, modern and secure file encryption tool.

# To generate an encrypted file that can be decrypted with a passphrase:
age --passphrase --output <path/to/encrypted_file> <path/to/unencrypted_file>

# To generate a key pair, saving the private key to an unencrypted file and printing the public key to 'stdout':
age-keygen --output <path/to/file>

# To encrypt a file with one or more public keys that are entered as literals:
age --recipient <public_key_1> --recipient <public_key_2> --output <path/to/encrypted_file> <path/to/unencrypted_file>

# To encrypt a file to one or more recipients with their public keys specified in a file (one per line):
age --recipients-file <path/to/recipients_file> --output <path/to/encrypted_file> <path/to/unencrypted_file>

# To decrypt a file with a passphrase:
age --decrypt --output <path/to/decrypted_file> <path/to/encrypted_file>

# To decrypt a file with a private key file:
age --decrypt --identity <path/to/private_key_file> --output <path/to/decrypted_file> <path/to/encrypted_file>