Sign image.png creates image.png.sig (armored, detached, Saltpack signature):
keys sign -s gabriel@github -i image.pngCreate a signed message from stdin (armored, attached, saltpack signature):
echo -n "I'm gabriel on Github 馃" | keys sign -s gabriel@github > msg.signedOverride the default format with -armor -attached and create an armored signed message for a file, image.png.signed:
keys sign -s gabriel@github -i image.png -armor -attachedFor files, the default is armored, detached. For stdin, the default is armored, attached.
| Input | Armored | Detached |
|---|---|---|
| file | Yes | Yes |
| stdin | Yes | No |
Saltpack version 2 signing is currently the only output format.
Verify image.png from image.png.sig (detached signature).
keys verify -i image.png -x image.png.sigVerify and output a signed message was signed by gabriel@github:
cat msg.signed | keys verify -signer gabriel@github
I'm gabriel on Github 馃Verify image.png.signed (attached) was signed by gabriel@github and create image.png.
keys verify -i image.png.signed -s gabriel@github