cryptest(1)

๐Ÿ’– cryptest โ€” the manual page, but make it cute ๐Ÿ’–

okay so bestie, welcome to cryptest(1), from the General Commands Manual. this is the Test Driver for Crypto++, which is a C++ Class Library of Cryptographic Primitives. that's a lot of capital letters, i know, but it's literally just the lil test-driver tool that ships with Crypto++ so you can poke at crypto primitives and see them go โœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

cryptest [OPTION]

that's it. that's the whole vibe. one option at a time, bestie ๐ŸŽ€


โœจ DESCRIPTION โœจ

cryptest takes the following options โ€” and yes, i'm giving you all of them, no skips, no crumbs:

  • g โ€” generate an RSA key ๐Ÿ”‘
  • h โ€” display usage information (the classic cry for help menu, we love her)
  • r โ€” encrypt and decrypt a string using RSA ๐Ÿ”
  • rs privatekeyfile messagefile signaturefile โ€” sign a file using RSA โœ๏ธ
  • rv publickeyfile messagefile signaturefile โ€” verify a signature of a file using RSA โœ…
  • m file โ€” calculate MD5, SHA, and RIPEMD-160 message digests ๐Ÿงฎ
  • t โ€” encrypt and decrypt a string using DES-EDE in CBC mode (vintage behavior, highkey iconic)
  • e|d input output โ€” encrypt or decrypt a file ๐Ÿ”„
  • ss <threshold> <number-of-shares> file โ€” secret share a file. heads up: the shares will be named file.000, file.001, etc ๐Ÿ“Ž
  • sr file share1 share2 [....] โ€” reconstruct a secret-shared file. the number of shares given must be equal to threshold, no cap ๐Ÿงฉ
  • id <threshold> <number-of-shares> file โ€” information disperse a file. again, shares will be named file.000, file.001, etc ๐Ÿ“Ž
  • ir file share1 share2 [....] โ€” reconstruct an information-dispersed file. and again, the number of shares given must be equal to threshold ๐Ÿงฉ
  • z <compression-level> input output โ€” gzip a file ๐Ÿ—œ๏ธ
  • u input output โ€” gunzip a file ๐Ÿซง
  • ae input output โ€” encrypt a file with AES in CTR mode ๐Ÿ›ก๏ธ
  • e64 input output โ€” base64 encode a file
  • d64 input output โ€” base64 decode a file
  • e16 input output โ€” hex encode a file
  • d16 input output โ€” hex decode a file
  • ft source-port destination-host destination-port โ€” forward a TCP connection ๐ŸŒ
  • fips โ€” run the FIPS 140-2 sample application ๐Ÿ“‹
  • fips-rand โ€” generate 100000 random files using FIPS Approved X.917 RNG ๐ŸŽฒ (yes, one hundred thousand. she's committed.)
  • mt input โ€” run Maurer's randomness test on a file ๐ŸŽฐ
  • v โ€” run validation tests ๐Ÿงช
  • V โ€” display version number (capital V, lowercase v, they are NOT the same bestie, do not mix them up ๐Ÿ˜ญ)
  • b [time for each benchmark in seconds] [frequency of CPU in gigahertz] โ€” run benchmarks โฑ๏ธ
  • tv filename โ€” run test vector file. psst: it's available in the TestVectors example subdirectory ๐Ÿ“‚

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

this man page was created by Stephen Zander, Pierre Machard and Jens Peter Secher for the Debian distribution ๐Ÿ’œ it is licenced under the same terms as the rest of the Crypto++ library, written by Wei Dai.


okay that's the whole thing, you ate it, you understood it, periodt ๐Ÿ’…

sign-off time: this page lives in the local corner of the world and it's filed under cryptest(1) โ€” so if you ever need to find her again, that's where she's at ๐Ÿฆ‹ bye bestie, go encrypt something responsibly ๐ŸŽ€