What is age? It means Actually Good Encryption. It's a tool that makes encryption easy, by not having many options.
Use your package manager to install age
.
OS | Command |
---|---|
Windows | choco install age.portable |
Mac | brew install age |
Ubuntu | apt install age |
To encrypt to someone's public key:
age --encrypt --recipient publicKeyHere --output encryptedFile.txt.age inputFile.txt
You can provide many recipients by repeating --recipient publicKey
for each one.
If you want to make your own key, so that you can be a recipient, then you use age-keygen
.
age-keygen --output key.txt
Now your private key is in key.txt
(never share it), and the public key (share that one) is printed to the screen, and is also in key.txt
.
To decrypt a message sent to you:
age --decrypt --identity path/to/your/key.txt encryptedFile.txt.age
Contact: owl@u8.is
age1ugla4pmd9r69xuld5f3fq6z7394jlgf4qjq2tahvpw9weyjukqrqt80cna
No man earns punishment, no man earns reward. Free your mind of the idea of deserving, the idea of earning, and you will begin to be able to think