간단하고 현대적이며 안전한 암호화 도구(및 Go 라이브러리)로, 작고 명시적인 키를 사용하고 구성 옵션이 없으며 UNIX 스타일의 조합성을 제공합니다.
age는 간단하고 현대적이며 안전한 파일 암호화 도구이자 형식이며 Go 라이브러리입니다.
명시적 키, 포스트 양자 보안, 구성 옵션 없음, UNIX 스타일의 조합 가능성을 특징으로 합니다.
$ age-keygen -o key.txt
Public key: age1pq167[... 1950 more characters ...]
$ tar cvz ~/data | age -r age1pq167[...] > data.tar.gz.age
$ age --decrypt -i key.txt data.tar.gz.age > data.tar.gz
📜 형식 명세는 age-encryption.org/v1에 있습니다. age는 @benjojo와 @FiloSottile이 설계했습니다.
🦀 상호 운용 가능한 대체 Rust 구현은 github.com/str4d/rage에서 이용할 수 있습니다.
🌍 Typage는 TypeScript 구현입니다. 브라우저, Node.js, Deno, Bun에서 동작합니다.
🔑 YubiKey와 같은 하드웨어 PIV 토큰은 age-plugin-yubikey 플러그인을 통해 지원됩니다.
✨ 더 많은 플러그인, 구현, 도구 및 통합에 대해서는 awesome age 목록을 확인하세요.
💬 제작자는 이를 GIF처럼 경음 g로 [aɡe̞]라고 발음하며, 항상 소문자로 표기합니다.
| Homebrew (macOS 또는 Linux) |
brew install age
|
| MacPorts |
port install age
|
| Windows |
winget install --id FiloSottile.age
|
| Alpine Linux v3.15+ |
apk add age
|
| Arch Linux |
pacman -S age
|
| Debian 12+ (Bookworm) |
apt install age
|
| Debian 11 (Bullseye) |
apt install age/bullseye-backports
(age v1.0.0+를 위해 backports 활성화)
|
| Fedora 33+ |
dnf install age
|
| Gentoo Linux |
emerge app-crypt/age
|
| Guix System |
guix package -i age
|
| NixOS / Nix |
nix-env -i age
|
| openSUSE Tumbleweed |
zypper install age
|
| Ubuntu 22.04+ |
apt install age
|
| Void Linux |
xbps-install age
|
| FreeBSD |
pkg install age (security/age)
|
| OpenBSD 6.7+ |
pkg_add age (security/age)
|
| Chocolatey (Windows) |
choco install age.portable
|
| Scoop (Windows) |
scoop bucket add extras && scoop install age
|
Windows, Linux, macOS, FreeBSD에서는 미리 빌드된 바이너리를 사용할 수 있습니다.
미리 빌드된 바이너리를 다운로드한 경우 Sigsum 증명을 확인할 수 있습니다.
시스템에 지원되는 버전의 Go가 있다면 소스에서 빌드할 수 있습니다.
go install filippo.io/age/cmd/...@latest
새로운 패키저의 도움을 언제나 환영합니다.
전체 문서는 age(1) 매뉴얼 페이지를 참고하세요.
Usage:
age [--encrypt] (-r RECIPIENT | -R PATH)... [--armor] [-o OUTPUT] [INPUT]
age [--encrypt] --passphrase [--armor] [-o OUTPUT] [INPUT]
age --decrypt [-i PATH]... [-o OUTPUT] [INPUT]
Options:
-e, --encrypt Encrypt the input to the output. Default if omitted.
-d, --decrypt Decrypt the input to the output.
-o, --output OUTPUT Write the result to the file at path OUTPUT.
-a, --armor Encrypt to a PEM encoded format.
-p, --passphrase Encrypt with a passphrase.
-r, --recipient RECIPIENT Encrypt to the specified RECIPIENT. Can be repeated.
-R, --recipients-file PATH Encrypt to recipients listed at PATH. Can be repeated.
-i, --identity PATH Use the identity file at PATH. Can be repeated.
--version Print the version.
INPUT defaults to standard input, and OUTPUT defaults to standard output.
If OUTPUT exists, it will be overwritten.
RECIPIENT can be an age public key generated by age-keygen ("age1...")
or an SSH public key ("ssh-ed25519 AAAA...", "ssh-rsa AAAA...").
Recipient files contain one or more recipients, one per line. Empty lines
and lines starting with "#" are ignored as comments. "-" may be used to
read recipients from standard input.
Identity files contain one or more secret keys ("AGE-SECRET-KEY-1..."),
one per line, or an SSH key. Empty lines and lines starting with "#" are
ignored as comments. Passphrase encrypted age files can be used as
identity files. Multiple key files can be provided, and any unused ones
will be ignored. "-" may be used to read identities from standard input.
When --encrypt is specified explicitly, -i can also be used to encrypt to an
identity file symmetrically, instead or in addition to normal recipients.
-r/--recipient를 반복하여 파일을 여러 수신자에게 암호화할 수 있습니다. 모든 수신자는 파일을 복호화할 수 있습니다.
$ age -o example.jpg.age -r age1pq167[...] -r age1pq1e3[...] example.jpg
-R/--recipients-file 플래그로 전달된 하나 이상의 파일에 여러 수신자를 한 줄에 하나씩 나열할 수도 있습니다.
$ cat recipients.txt
# Alice
age1pq167[... 1950 more characters ...]
# Bob
age1pq1e3[... 1950 more characters ...]
$ age -R recipients.txt example.jpg > example.jpg.age
-R(또는 -i)에 대한 인자가 -이면, 파일은 표준 입력에서 읽힙니다.
포스트 양자 키 지원은 age v1.3.0 이상에 내장되어 있습니다. 또는 age-plugin-pq 바이너리를 설치하여 $PATH에 배치하면 플러그인을 지원하는 모든 버전 및 구현의 age에 지원을 추가할 수 있습니다. 수신자는 별도 설정 없이 바로 작동하지만, 아이덴티티는 age-plugin-pq -identity를 사용하여 플러그인 아이덴티티로 변환해야 합니다.
age v1.4.0은 레거시 비PQ 키의 모든 사용에 대해 경고합니다. 향후 버전의 age는 레거시 비PQ 키로 암호화하는 것을 차단할 것입니다.
age의 역할은 미래의 오랜 기간 동안 파일의 기밀성을 유지하는 것입니다. 양자 암호 분석 일정에 대한 최근 업데이트로 인해, 우리는 age의 원래 X25519 기반 키가 더 이상 그 역할을 감당할 수 없다고 생각합니다.
레거시 키로 암호화된 파일은 우리 대부분이 예상했던 것보다 더 이른 미래에 소급하여 복호화 가능해질 수 있습니다. 새로운 포스트 양자 키를 생성해야 하며, 레거시 비PQ 키로 암호화된 파일을 다시 암호화해야 합니다.