5

Installing Age Encryption Tool

 1 year ago
source link: https://techno-tim.github.io/posts/install-age/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Posted Jan 30, 2023 Updated Feb 1, 2023
By Techno Tim
1 min read

What is Age?

age is a simple, modern and secure file encryption tool, format, and Go library. It features small explicit keys, no config options, and UNIX-style composability. It is commonly used in tandem with Mozilla SOPS. It’s open source and you can read more about it on the GitHub repo. Looking for a turial on how use this? [Checkout this video on how to use SOPS and Age for your Git Repos]!

Install

We want to get the latest release of age so we need to look at their github repo for the latest version.

AGE_LATEST_VERSION=$(curl -s "https://api.github.com/repos/FiloSottile/age/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Then we’ll use curl to download the latest .tar.gz

curl -Lo age.tar.gz "https://github.com/FiloSottile/age/releases/latest/download/age-v${AGE_LATEST_VERSION}-linux-amd64.tar.gz"

Then we’ll want to extract age.tar.gz

tar xf age.tar.gz

Then we’ll move both binaries (age and age-keygen) to /usr/local/bin so we can use them

sudo mv age/age /usr/local/bin
sudo mv age/age-keygen /usr/local/bin

Then we’ll clean up our downloads and extractions

rm -rf age.tar.gz
rm -rf age

Then we can test to make sure age and age-keygen are working by running

age -version
age-keygen -version

Uninstall

To uninstall, it’s as simple as removing the binaries

sudo rm -rf /usr/local/bin/age
sudo rm -rf /usr/local/bin/age-keygen

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK