LinuxCommandLibrary

rage

Simple modern file encryption tool

TLDR

Encrypt file with passphrase

$ rage -p -o [encrypted.age] [file.txt]
copy
Encrypt with recipient
$ rage -r [age1...] -o [encrypted.age] [file.txt]
copy
Decrypt file
$ rage -d -i [key.txt] [encrypted.age]
copy
Generate new key
$ rage-keygen -o [key.txt]
copy
Encrypt with SSH key
$ rage -R [~/.ssh/id_ed25519.pub] [file.txt]
copy
Armor output
$ rage -a -r [age1...] [file.txt]
copy
Encrypt stdin
$ echo "secret" | rage -r [age1...] -o [secret.age]
copy

SYNOPSIS

rage [-e|-d] [-r recipient] [-i identity] [-o output] [options] [file]

DESCRIPTION

rage is a Rust implementation of the age encryption tool. It provides simple, modern file encryption.
Public key encryption uses age keys or SSH keys. Recipients are specified by their public key.
Passphrase mode uses scrypt for key derivation. No key management needed for simple use.
ASCII armor produces text output. Safe for email or other text channels.
Multiple recipients allow group encryption. Any recipient can decrypt.

PARAMETERS

-e, --encrypt

Encrypt mode.
-d, --decrypt
Decrypt mode.
-r, --recipient KEY
Recipient public key.
-R, --recipients-file FILE
File with recipients.
-i, --identity FILE
Identity/private key.
-p, --passphrase
Use passphrase.
-a, --armor
ASCII armor output.
-o, --output FILE
Output file.

CAVEATS

Age format, not compatible with GPG. Key management is manual. No key servers.

HISTORY

rage is a Rust implementation of age (Actually Good Encryption), designed by Filippo Valsorda. Age aims to be a simpler alternative to GPG.

SEE ALSO

age(1), gpg(1), openssl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community