0
开源安全加密工具-Age
source link: http://osp.io/archives/7733
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.
开源安全加密工具-Age – 开源派
Age(Actual Good Encryption)是一款简单易用的安全加密开源工具,可基于非对称加密算法,快速对私密文件进行加密。 Age命令行工具基于Go 语言编写,遵守BSD-3-clause 开源协议。
各个操作系统安装方法:
Homebrew (macOS or Linux) | brew install age |
MacPorts | port install age |
Alpine Linux v3.15+ | apk add age |
Arch Linux | pacman -S age |
Debian 11+ (Bullseye) | apt install age/bullseye-backports |
Fedora 33+ | dnf install age |
Gentoo Linux | emerge app-crypt/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 |
age 压缩包解开后有 age 和 age-keygen 两个文件,执行 age-keygen 获得密钥对。为了方便下次使用,可将私钥存在文本文件里。
命令行使用帮助:
使用:
age [--encrypt] (-r RECIPIENT | -R PATH)... [--armor] [-o OUTPUT] [INPUT]
age [--encrypt] --passphrase [--armor] [-o OUTPUT] [INPUT]
age --decrypt [-i PATH]... [-o OUTPUT] [INPUT]
选项:
-e, --encrypt 加密文件
-d, --decrypt 解密文件
-o, --output OUTPUT 输出文件结果
-a, --armor 以PEM 格式加密.
-p, --passphrase passphrase加密.
-r, --recipient RECIPIENT 加密指定接收人.
-R, --recipients-file PATH 加密并列出路径与接收人.
-i, --identity PATH 使用鉴别文件
源代码:https://github.com/FiloSottile/age
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK