HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rage — A simple, secure, and modern file encryption tool (and Rust library) with small explicit keys, no co

Submitted by: @import:tldr-pages··
0
Viewed 0 times
simplecommandandsecuremodernclifilerage

Problem

How to use the rage command: A simple, secure, and modern file encryption tool (and Rust library) with small explicit keys, no configuration options, and UNIX-style composability. Rust implementation of age. More information: <https://github.com/str4d/rage>.

Solution

rage — A simple, secure, and modern file encryption tool (and Rust library) with small explicit keys, no configuration options, and UNIX-style composability. Rust implementation of age. More information: <https://github.com/str4d/rage>.

Encrypt a file for user and save it to message.age:
echo "{{Your secret message}}" | rage --encrypt --recipient {{user}} --output {{path/to/message.age}}


Decrypt a file with identity_file and save it to message:
rage --decrypt --identity {{path/to/identity_file}} --output {{message}}

Code Snippets

Encrypt a file for `user` and save it to `message.age`

echo "{{Your secret message}}" | rage --encrypt --recipient {{user}} --output {{path/to/message.age}}

Decrypt a file with `identity_file` and save it to `message`

rage --decrypt --identity {{path/to/identity_file}} --output {{message}}

Context

tldr-pages: common/rage

Revisions (0)

No revisions yet.