maroph

GPG: create/verify detached signature for a file

Feb 29th, 2016
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. # create a detached signature for a file
  2. gpg --output test.txt.sig.asc --armor --detach-sig test.txt
  3.  
  4. # In the above command you have to enter the passphrase via your
  5. # keyboar. Add the following options to pass your passphrase via
  6. # the command line:
  7. #
  8. # --batch --passphrase 'your_passphrase'
  9. #
  10. # Use a desired key
  11. # --default-key [email protected]
  12. #
  13. # use a special digest
  14. # --digest-algo SHA256
  15.  
  16. # verify a detached signature for a file
  17. gpg --verify test.txt.sig.asc test.txt
Advertisement
Add Comment
Please, Sign In to add comment