edu.vt.middleware.crypt.signature.SignatureCli.examples Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-crypt Show documentation
Show all versions of vt-crypt Show documentation
Library for performing common cryptographic operations
- Create a base-64-encoded DSA signature of a file
sign -sign -alg DSA -key path/to/dsa-priv-key.der -encoding base64 \
-in path/to/file.txt
- Create a hex-encoded RSA signature of a file using an MD5 digest
sign -sign -alg RSA -key path/to/dsa-priv-key.der -digest MD5 \
-encoding base64 -in path/to/file.txt
- Verify a hex-encoded RSA signature using a PEM-encoded RSA public key
(PEM-encoded key is determined by .pem file extension)
sign -verify path/to/sig.hex -alg RSA -key path/to/rsa-pub-key.pem \
-encoding hex -in path/to/file.txt
© 2015 - 2025 Weber Informatics LLC | Privacy Policy