Signed Source Code /
Signed Embedded Plain
Difference (previous author) (Change, Edit, normal page display)
Changed: 1c1,94
Describe the new page here. |
= Embedded Signatur for plain D source files = see also SignedSourceCode can also be just for C/C++ and Java == 1/5 The Source == Verify that your source file is functional. [[code] int main(char[][] arg){ printf("Hello!\n"); return 0; } ] == 2/5 Open Comments == Add the commend closing */ to the start of the file and the commend opening /* to the end of the file. [[code] */ int main(char[][] arg){ printf("Hello!\n"); return 0; } /*] == 3/5 Create Signature == gpg --out output --clearsign input or gpg --clearsign < input > output [[code]<pre> BEGIN PGP SIGNED MESSAGE Hash: SHA1 */ int main(char[][] arg){ printf("Hello!\n"); return 0; } /* -----BEGIN PGP SIGNATURE----- Version: GnuPG? v1.2.6 (GNU/Linux) iD8DBQFBuNvV3w+/yD4P9tIRAppeAJ0fNyjlV3nKA25WdmznkjSgLBx/kQCeP1Xf sXnFHYeolWo4VWme3Ao8L4Y= =ClPq? -----END PGP SIGNATURE-----</pre>] == 4/5 Close Comments == Add the missing /* and */. [[code]<pre> /* -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 */ int main(char[][] arg){ printf("Hello!\n"); return 0; } /* -----BEGIN PGP SIGNATURE----- Version: GnuPG? v1.2.6 (GNU/Linux) iD8DBQFBuNvV3w+/yD4P9tIRAppeAJ0fNyjlV3nKA25WdmznkjSgLBx/kQCeP1Xf sXnFHYeolWo4VWme3Ao8L4Y= =ClPq? -----END PGP SIGNATURE----- */ </pre>] == 5/5 Verify the Signature == gpg input or gpg < input |
Embedded Signatur for plain D source files
see also SignedSourceCode
can also be just for C/C++ and Java
1/5 The Source
Verify that your source file is functional.
|
2/5 Open Comments
Add the commend closing */ to the start of the file and the commend opening /* to the end of the file.
|
3/5 Create Signature
gpg --out output --clearsign input
or
gpg --clearsign < input > output
|
4/5 Close Comments
Add the missing /* and */.
|
5/5 Verify the Signature
gpg input
or
gpg < input