botan
Provide cryptographic operations including hashing, encryption, and key generation. tldr-pages
On several platforms
Several platforms
Compute the digest of a file with a specific algorithm
botan hash --algo=SHA-256 path/to/fileIdentifyEncode a file to Base64
botan base64_enc path/to/fileIdentifyEncrypt a file with AES-256/GCM (key and nonce are hex-encoded)
botan cipher --cipher=AES-256/GCM --key=hex_key --nonce=hex_nonce --output=path/to/output_file path/to/fileIdentifyDecrypt a file with AES-256/GCM
botan cipher --cipher=AES-256/GCM --decrypt --key=hex_key --nonce=hex_nonce --output=path/to/output_file path/to/fileIdentifyGenerate an RSA private key
botan keygen --algo=RSA --params=2048 >path/to/private_key.pemIdentifyPrint 16 random bytes
botan rng 16IdentifyDisplay version
botan versionIdentify