Wednesday, July 16, 2008

How to sign a file using GPG

There are several reasons why you would want to sign a file, one of it is to ensure that the file really came from the author. Well , I recently finished some slides for job and wanted to sign it.

$ gpg --default-key DEADBEEF --sign --detach-sign Some-Dumb-Slides.odp

(Note, DEADBEEF is the Hex ID of my key, the --detach-sign param is used, so that a sig file is created)

An additional Some-Dumb-Slides.sig file will be created.

To verify the signature:

$gpg Some-Dumb-Slides.sig

Gosh I love GPG.

No comments: