Signed Source Code /
Signed Embedded HTML
Difference (previous author) (Change, Edit, normal page display)
Changed: 1c1,100
Describe the new page here. |
= Embedded Signatur for HTML source files = see also SignedSourceCode WARNING: this is against the W3C standard but will be rendered correctly all browsers == 1/5 The Source == Verify that your source file is functional. [[code]<pre> <html> <head><title>The Title</title></head> <body><CODE> int main(char[][] arg){ printf("Hello!\n"); return 0; } </CODE></body> </html></pre>] == 2/5 Preparation == Replace "<html>" and "</html>" with "-->" and "<!--" [[code]<pre>--> <head><title>The Title</title></head> <body><CODE> int main(char[][] arg){ printf("Hello!\n"); return 0; } </CODE></body> <!--</pre>] == 3/5 Create Signature == gpg --out output --clearsign input or gpg --clearsign < input > output [[code]<pre>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 --> <head><title>TheTitle?</title></head> <body><CODE> int main(char[][] arg){ printf("Hello!\n"); return 0; } </CODE></body> <!-- -----BEGIN PGP SIGNATURE----- Version: GnuPG? v1.2.6 (GNU/Linux) iD8DBQFBuOg13w+/yD4P9tIRAji0AJ9lQci7yH/Oy7TExjqhXT4kSEXNOgCgvyRz? hdQlIn8Il9543HjqQwpRn5g= =1I7u -----END PGP SIGNATURE----- </pre>] == 4/5 Cleanup == Add the missing "<html><!--", and "--></html>". [[code]<pre> <html><!-- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 --> <head><title>TheTitle?</title></head> <body><CODE> int main(char[][] arg){ printf("Hello!\n"); return 0; } </CODE></body> <!-- -----BEGIN PGP SIGNATURE----- Version: GnuPG? v1.2.6 (GNU/Linux) iD8DBQFBuOg13w+/yD4P9tIRAji0AJ9lQci7yH/Oy7TExjqhXT4kSEXNOgCgvyRz? hdQlIn8Il9543HjqQwpRn5g= =1I7u -----END PGP SIGNATURE----- --></html> </pre>] == 5/5 Verify the Signature == gpg input or gpg < input |
Embedded Signatur for HTML source files
see also SignedSourceCode
WARNING: this is against the W3C standard but will be rendered correctly all browsers
1/5 The Source
Verify that your source file is functional.
|
2/5 Preparation
Replace "<html>" and "</html>" with "-->" and "<!--"
|
3/5 Create Signature
gpg --out output --clearsign input
or
gpg --clearsign < input > output
|
4/5 Cleanup
Add the missing "<html><!--", and "--></html>".
|
5/5 Verify the Signature
gpg input
or
gpg < input