← 全部工具

age

热度 85 更新于 开发与构建

Simple, modern, secure file encryption

homebrewauto-collected

安装

Homebrew
brew install age

通过 Homebrew 安装。

<p align="center" <picture <source media="(prefers-color-scheme: dark)" srcset="https://github.com/FiloSottile/age/blob/main/logo/logowhite.svg" <source media="(prefers-color-scheme: light)" srcset="https://github.com/FiloSottile/age/blob/main/logo/logo.svg" <img alt="The age logo, a wireframe of St. Peters dome in Rome, with the text: age, file encryption" width="600" src="https://github.com/FiloSottile/age/blob/main/logo/logo.svg" </picture </p

age is a simple, modern and secure file encryption tool, format, and Go library.

It features small explicit keys, post-quantum support, no config options, and UNIX-style composability.

$ age-keygen -o key.txt
Public key: age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p
$ tar cvz ~/data | age -r age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p > data.tar.gz.age
$ age --decrypt -i key.txt data.tar.gz.age > data.tar.gz

📜 The format specification is at age-encryption.org/v1. age was designed by @benjojo and @FiloSottile.

🦀 An alternative interoperable Rust implementation is available at github.com/str4d/rage.

🌍 Typage is a TypeScript implementation. It works in the browser, Node.js, Deno, and Bun.

🔑 Hardware PIV tokens such as YubiKeys are supported through the age-plugin-yubikey plugin.

✨ For more plugins, implementations, tools, and integrations, check out the awesome age list.

💬 The author pronounces it [aɡe̞] with a hard g, like GIF, and it's always spelled lowercase.

Installation

<table <tr <tdHomebrew (macOS or Linux)</td <td <codebrew install age</code </td </tr <tr <tdMacPorts</td <td <codeport install age</code </td </tr <tr <tdWindows</td <td <codewinget install --id FiloSottile.age</code </td </tr <tr <tdAlpine Linux v3.15+</td <td <codeapk add age</code </td </tr <tr <tdArch Linux</td <td <codepacman -S age</code </td </tr <tr <tdDebian 12+ (Bookworm)</td <td <codeapt install age</code </td </tr <tr <tdDebian 11 (Bullseye)</td <td <codeapt install age/bullseye-backports</code (<a href="https://backports.debian.org/Instructions/#index2h2"enable backports</a for age v1.0.0+) </td </tr <tr <tdFedora 33+</td <td <codednf install age</code </td </tr <tr <tdGentoo Linux</td <td <codeemerge app-crypt/age</code </td </tr <tr <tdGuix System</td <td <codeguix package -i age</code </td </tr <tr <tdNixOS / Nix</td <td <codenix-env -i age</code </td </tr <tr <tdopenSUSE Tumbleweed</td <td <codezypper install age</code </td </tr <tr <tdUbuntu 22.04+</td <td <codeapt install age</code </td </tr <tr <tdVoid Linux</td <td <codexbps-install age</code </td </tr <tr <tdFreeBSD</td <td <codepkg install age</code (security/age) </td </tr <tr <tdOpenBSD 6.7+</td <td <codepkgadd age</code (security/age) </td </tr <tr <tdChocolatey (Windows)</td <td <codechoco install age.portable</code </td </tr <tr <tdScoop (Windows)</td <td <codescoop bucket add extras && scoop install age</code </td </tr </table

On Windows, Linux, macOS, and FreeBSD you can use the pre-built binaries.

https://dl.filippo.io/age/latest?for=linux/amd64
https://dl.filippo.io/age/v1.3.1?for=darwin/arm64
...

If you download the pre-built binaries, you can check their Sigsum proofs.

If your system has a supported version of Go, you can build from source.

go install filippo.io/age/cmd/...@latest

Help from new packagers is very welcome.