botan
Provide cryptographic operations including hashing, encryption, and key generation. More information: https://botan.randombit.net/handbook/cli.html.
- Compute the digest of a file with a specific algorithm:
botan hash --algo=
- Encode a file to Base64:
botan base64_enc
- Encrypt a file with AES-256/GCM (key and nonce are hex-encoded):
botan cipher --cipher=AES-256/GCM --key= --nonce= --output=
- Decrypt a file with AES-256/GCM:
botan cipher --cipher=AES-256/GCM --decrypt --key= --nonce= --output=
- Generate an RSA private key:
botan keygen --algo=RSA --params=2048 >
- Print 16 random bytes:
botan rng 16
- Display help:
botan --help
- Display version:
botan version
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
