<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need some help about GPG signatures... !]]></title><description><![CDATA[<p dir="auto">Hello, guys,</p>
<p dir="auto">Of course, I could have continued to check the <strong>integrity</strong>, of the <strong>downloaded</strong> Notepad++ archives, with the <strong><code>SHA-256</code></strong> check-sum, but I’m <strong>curious</strong> and decided to have a look at the <strong>GPG signatures</strong> !</p>
<p dir="auto">So, reading <strong>first</strong>, from the N++ link :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/news/v7.6.5-with-gpg-signatures.html" rel="nofollow ugc">https://notepad-plus-plus.org/news/v7.6.5-with-gpg-signatures.html</a></p>
<p dir="auto">I downloaded the most <strong>recent</strong> version of <strong><code>Gnupg</code></strong> software, <strong><code>gnupg-w32-2.2.15_20190326.exe</code></strong> from that site :</p>
<p dir="auto"><a href="https://gnupg.org/ftp/gcrypt/binary/" rel="nofollow ugc">https://gnupg.org/ftp/gcrypt/binary/</a></p>
<p dir="auto">And, from the <strong>end</strong> of the page, below, I have recovered the <strong><code>SHA-1</code></strong> sum of the <strong><code>gnupg-w32-2.2.15_20190326.exe</code></strong> software :</p>
<p dir="auto"><a href="https://gnupg.org/download/integrity_check.html" rel="nofollow ugc">https://gnupg.org/download/integrity_check.html</a></p>
<p dir="auto">Its <strong><code>SHA-1</code></strong> <strong>check-sum</strong> is <strong><code>f5f7eeadfdf6ad971b5313f045083b4f95ace07b</code></strong></p>
<p dir="auto">By a <strong>right</strong> click on this archive and the choice, in the <strong>context</strong> dialog, of the <strong><code>CRC - SHA &gt; SHA-1</code></strong> option ( from <strong>7-zip</strong> ) , I could verify that it was the <strong>same</strong>.  Good !</p>
<p dir="auto">Now, on my <strong>old</strong> <strong><code>XP SP3</code></strong> laptop, from the folder <strong><code>C:\Program Files\gnupg\bin</code></strong>, I started, in <strong>console</strong> mode, <strong><code>gpg.exe --help</code></strong> and it answers :</p>
<pre><code class="language-diff">gpg (GnuPG) 2.2.15
libgcrypt 1.8.4
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;https://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: C:\Documents and Settings\Guy\Application Data\gnupg
Algorithmes pris en charge :
Clef publique : RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Chiffrement : IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256,
              TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256
Hachage : SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression : Non compressé, ZIP, ZLIB, BZIP2

Syntaxe : gpg [options] [fichiers]
Signer, vérifier, chiffrer ou déchiffrer
L'opération par défaut dépend des données entrées

Commandes :

 -s, --sign                  faire une signature
     --clear-sign            faire une signature en texte clair
 -b, --detach-sign           faire une signature détachée
 -e, --encrypt               chiffrer les données
 -c, --symmetric             chiffrement symétrique seulement
 -d, --decrypt               déchiffrer les données (défaut)
     --verify                vérifier une signature
 -k, --list-keys             afficher les clefs
     --list-signatures       afficher les clefs et les signatures
     --check-signatures      afficher et vérifier les signatures de clefs
     --fingerprint           afficher les clefs et les empreintes
 -K, --list-secret-keys      afficher les clefs secrètes
     --generate-key          générer une nouvelle paire de clefs
     --quick-generate-key    générer rapidement une nouvelle paire de clefs
     --quick-add-uid         quickly add a new user-id
     --quick-revoke-uid      quickly revoke a user-id
     --quick-set-expire      quickly set a new expiration date
     --full-generate-key     générer une paire de clefs complètes
     --generate-revocation   générer un certificat de révocation
     --delete-keys           supprimer les clefs du porte-clefs public
     --delete-secret-keys    supprimer les clefs du porte-clefs secret
     --quick-sign-key        signer rapidement une clef
     --quick-lsign-key       signer rapidement une clef localement
     --sign-key              signer une clef
     --lsign-key             signer une clef localement
     --edit-key              signer ou éditer une clef
     --change-passphrase     modifier une phrase secrète
     --export                exporter les clefs
     --send-keys             exporter les clefs vers un serveur de clefs
     --receive-keys          importer les clefs d'un serveur de clefs
     --search-keys           chercher les clefs avec un serveur de clefs
     --refresh-keys          mettre à jour les clefs depuis un serveur
     --import                importer ou fusionner les clefs
     --card-status           afficher l'état de la carte
     --edit-card             modifier les données d'une carte
     --change-pin            modifier le code personnel d'une carte
     --update-trustdb        mettre la base de confiance à jour
     --print-md              indiquer les fonctions de hachage
     --server                exécuter en mode serveur
     --tofu-policy VALUE     set the TOFU policy for a key

Options :

 -a, --armor                 créer une sortie ASCII avec armure
 -r, --recipient IDENTITÉ     chiffrer pour l'IDENTITÉ
 -u, --local-user IDENTITÉ    utiliser l'IDENTITÉ pour signer ou déchiffrer
 -z N                        niveau de compression N (0 désactive)
     --textmode              utiliser le mode texte canonique
 -o, --output FICHIER        écrire la sortie dans le FICHIER
 -v, --verbose               bavard
 -n, --dry-run               ne rien modifier
 -i, --interactive           demander avant d'écraser un fichier
     --openpgp               utiliser le comportement strict d'OpenPGP

(Consultez la page de manuel pour obtenir une liste complète des commandes
et options)

Examples:

 -se -r Bob [file]          sign and encrypt for user Bob
 --clear-sign [file]        make a clear text signature
 --detach-sign [file]       make a detached signature
 --list-keys [names]        show keys
 --fingerprint [names]      show fingerprints

Veuillez signaler toutes anomalies sur &lt;https://bugs.gnupg.org&gt; (en anglais)
et tout problème de traduction à &lt;traduc@traduc.org&gt;.

C:\Program Files\gnupg\bin (20:50:52)	 
</code></pre>
<p dir="auto">Right ! ( Of course, it’s in <strong>French</strong>, sorry ! )</p>
<p dir="auto">Then, following the N++ <strong>GPG-signatures</strong> page, I verified that the <strong><code>Key fingerprint</code></strong> value of the <strong>Release Key</strong>, below :</p>
<pre><code class="language-diff">Signer: Notepad++
E-mail: don.h@free.fr
Key ID: 0x8D84F46E
Key fingerprint: 14BC E436 2749 B2B5 1F8C 7122 6C42 9F1D 8D84 F46E
Key type: RSA 4096/4096
Created: 2019-03-11
Expiries: 2021-03-10
</code></pre>
<p dir="auto">was <strong>identical</strong> from the <strong><code>4</code></strong> indicated sites, i.e. the value <strong><code>14BC E436 2749 B2B5 1F8C 7122 6C42 9F1D 8D84</code></strong></p>
<p dir="auto">Well ! I decided to have a <strong>try</strong> :</p>
<ul>
<li>
<p dir="auto">First, I downloaded the <strong>two</strong> files <strong><code>npp.7.6.5.bin.7z</code></strong> and its <strong>signature</strong> <strong><code>npp.7.6.5.bin.7z.sig</code></strong>, in a <strong>same</strong> location ( <strong><code>D:\Téléchargements</code></strong> ), as stated.</p>
</li>
<li>
<p dir="auto">Then, as specified at the <strong>beginning</strong> of the page <a href="https://gnupg.org/download/integrity_check.html" rel="nofollow ugc">https://gnupg.org/download/integrity_check.html</a> , I type, in <strong>console</strong> mode, the similar command :</p>
</li>
</ul>
<p dir="auto"><strong><code>"C:\Program Files\gnupg\bin\gpg.exe" --verify npp.7.6.5.bin.7z.sig npp.7.6.5.bin.7z</code></strong></p>
<p dir="auto">And I got :</p>
<pre><code class="language-diff">gpg: Signature faite le 03/30/19 20:40:08 Paris, Madrid
gpg:                avec la clef RSA 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: Impossible de vérifier la signature : Pas de clef publique
D:\Téléchargements (21:40:54)
</code></pre>
<p dir="auto">The <strong>last</strong> French phrase means : <strong>Can’t check signature: No public key</strong></p>
<p dir="auto">But, in the N++ <strong>GPP signatures</strong> page, it is said, just <strong>before</strong> the <strong>Validating Digital Signature</strong> paragraph :</p>
<blockquote>
<p dir="auto">Then sign the Release Key with your private key and set the level of trust which you like.</p>
</blockquote>
<p dir="auto">So I’m really <strong>confused</strong> : one speaks abour <strong>private</strong> key and the <strong>gpg</strong> software speaks about <strong>public</strong> key !? I feel <strong>stuck</strong>, wondering which way to go !</p>
<p dir="auto">I also see, in the page, below, at the paragraph <strong>Integrity &amp; Authenticity validation</strong> :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/download/v7.6.5.html" rel="nofollow ugc">https://notepad-plus-plus.org/download/v7.6.5.html</a></p>
<p dir="auto">a link to the <strong><code>GPG Notepad++ Public key</code></strong> :</p>
<p dir="auto"><a href="https://notepad-plus-plus.org/gpg/nppGpgPub.asc" rel="nofollow ugc">https://notepad-plus-plus.org/gpg/nppGpgPub.asc</a></p>
<p dir="auto">but I don’t see how to use this <strong>public</strong> key with the <strong>gpg.exe</strong> software ! Of course, it’s my <strong>first</strong> immersion in that field and, may be, I should read <strong>general</strong> articles, about <strong>cryptography</strong> to begin with !</p>
<hr />
<p dir="auto">Oh ! , I’ve just seen that <strong>Don</strong> have modified the article, adding pictures of <strong>GPG4Win</strong> and <strong>PGP Desktop</strong> ! So, I would rather use the <strong><code>GPG4Win</code></strong> software, instead of the <strong>console</strong> version !</p>
<p dir="auto">So, please, do <strong>not</strong> be in a hurry to answer me. I’m <strong>still</strong> digging into the problem ;-)) I’ve got some elements but I don’t know <strong>how</strong> to gather them up ! Really <strong>disconcerting</strong> ;-))</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17394/need-some-help-about-gpg-signatures</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 01:13:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17394.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Apr 2019 20:56:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Mon, 08 Apr 2019 13:57:50 GMT]]></title><description><![CDATA[<p dir="auto">Sorry about the delay.  I had a busy family weekend this weekend.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said:</p>
<blockquote>
<p dir="auto">I would like to re-create my key-pair, with a size of 4096 bytes ( instead of 2048 ) I suppose that the best way is to delete my present key-pair and generate a new key-pair, afterwards, isn’t it ?</p>
</blockquote>
<p dir="auto">Yes.</p>
<blockquote>
<p dir="auto">In other words, Don must be the ONLY person which could be able to recover the original .7z archive in the Test.7z file , from the npp.7.6.5.bin.7z.sig signature, with the command :</p>
<p dir="auto">gpg -u Notepad++ -o Test.7z -d npp.7.6.5.bin.7z.sig, because he would use the private key of his certificate ! Peter, am I right about it ?</p>
</blockquote>
<p dir="auto">Not quite.  A signature is a one-way hash: you can take a file, and easily create the signature of the file; however, it is impossible to go the reverse direction.  For example, if I were to sign my copy of the gpg.exe, I would see:</p>
<pre><code>C:\Program Files (x86)\GnuPG\bin&gt;gpg --detach gpg.exe

C:\Program Files (x86)\GnuPG\bin&gt;ls -latr gpg.exe*
-rwxrwxrwx  1 Peter.Jones 0 1122816 2018-11-12 03:52 gpg.exe
-rw-rw-rw-  1 Peter.Jones 0     566 2019-04-08 06:05 gpg.exe.sig
</code></pre>
<p dir="auto">There aren’t any compression algorithms that I know of that are good enough to encrypt-and-compress a 1.1MB <code>gpg.exe</code> into 566 bytes of <code>gpg.exe.sig</code>.</p>
<p dir="auto"><em>All</em> you can do with the signature for a file is (1) verify that the file matches the signature, and (2) that the person who claimed to sign it is the one who signed it (based on whether the public key matches what’s in your keyring).</p>
<p dir="auto">I think one of the confusions is that there are three different kinds of “signing” for files:</p>
<pre><code>Commands:

 -s, --sign                  make a signature
     --clear-sign            make a clear text signature
 -b, --detach-sign           make a detached signature
</code></pre>
<ul>
<li>The <code>--sign</code> (<code>-s</code>) creates an output file that includes the original file, plus your signature of that file.  For example, in signing the standard-input as the input file:</li>
</ul>
<pre><code>C:\Program Files (x86)\GnuPG\bin&gt;gpg -a --sign
hello world
^Z
-----BEGIN PGP MESSAGE-----

owEBWgKl/ZANAwAIAa7S8NjBGc6nAcsTYgBcq0qBaGVsbG8gd29ybGQNCokCMwQA
...
-----END PGP MESSAGE-----
</code></pre>
<ul>
<li>The <code>--clear-sign</code> will do the same, but it will include the message in plain text, rather than encoded in the base-64 message,  like:</li>
</ul>
<pre><code>C:\Program Files (x86)\GnuPG\bin&gt;gpg -a --clear-sign
hello world
^Z
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

hello world
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEUi8A41Z69RBzWhJIrtLw2MEZzqcFAlyrSs0ACgkQrtLw2MEZ
...
-----END PGP SIGNATURE-----
</code></pre>
<ul>
<li>Finally, <code>--detach-sign</code> (<code>-b</code>) creates a file that has only the signature, without the original file embedded.  This is as my example above, with the signature for <code>gpg.exe</code> being only 566 bytes</li>
</ul>
<p dir="auto">(in the examples above, I used the <code>-a</code> to “ascii-armor” the results, so the signatures were printable on the screen)</p>
<p dir="auto">When a software distributor has available for download the original file <code>blah.zip</code>, alongside another file called <code>blah.zip.sig</code>, the <code>.sig</code> file is usually the detached signature created by <code>--detach-sign</code>, so does not contain the original file as well.</p>
<p dir="auto">If you want a copy of the file that has the signature embedded in the archive, you would use just the <code>--sign</code> argument: without the <code>-a</code> ascii-armoring, it will go in <code>blah.zip.gpg</code>; with the <code>-a</code> ascii-armoring, it would go in <code>blah.zip.asc</code>.</p>
<p dir="auto">Maybe this series of examples will make more sense:</p>
<p dir="auto">----</p>
<pre><code> Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:37 AM    &lt;DIR&gt;          .
04/08/2019  06:37 AM    &lt;DIR&gt;          ..
04/08/2019  06:36 AM            52,087 Temp.zip
               1 File(s)         52,087 bytes
               2 Dir(s)  110,105,284,608 bytes free

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;gpg --sign Temp.zip

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;dir
 Volume in drive C is Windows

 Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:37 AM    &lt;DIR&gt;          .
04/08/2019  06:37 AM    &lt;DIR&gt;          ..
04/08/2019  06:36 AM            52,087 Temp.zip
04/08/2019  06:37 AM            49,525 Temp.zip.gpg
               2 File(s)        101,612 bytes
               2 Dir(s)  110,105,165,824 bytes free

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;gpg -o NewTemp.zip --decrypt Temp.zip.gpg
gpg: Signature made 04/08/19 06:37:27 Pacific Daylight Time
gpg:                using RSA key ZZZ___WORK_SIG___ZZZ
gpg: Good signature from "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]
gpg:                 aka "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;dir
 Volume in drive C is Windows

 Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:37 AM    &lt;DIR&gt;          .
04/08/2019  06:37 AM    &lt;DIR&gt;          ..
04/08/2019  06:37 AM            52,087 NewTemp.zip
04/08/2019  06:36 AM            52,087 Temp.zip
04/08/2019  06:37 AM            49,525 Temp.zip.gpg
               3 File(s)        153,699 bytes
               2 Dir(s)  110,105,092,096 bytes free

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;fc Temp.zip NewTemp.zip
Comparing files Temp.zip and NEWTEMP.ZIP
FC: no differences encountered


C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;del Temp.zip.gpg NewTemp.zip

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;gpg --detach-sign Temp.zip

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;dir
 Volume in drive C is Windows

 Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:39 AM    &lt;DIR&gt;          .
04/08/2019  06:39 AM    &lt;DIR&gt;          ..
04/08/2019  06:36 AM            52,087 Temp.zip
04/08/2019  06:39 AM               566 Temp.zip.sig
               2 File(s)         52,653 bytes
               2 Dir(s)  110,105,157,632 bytes free

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;gpg --verify Temp.zip.sig
gpg: assuming signed data in 'Temp.zip'
gpg: Signature made 04/08/19 06:39:03 Pacific Daylight Time
gpg:                using RSA key ZZZ___WORK_SIG___ZZZ
gpg: Good signature from "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]
gpg:                 aka "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;dir
 Volume in drive C is Windows

 Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:39 AM    &lt;DIR&gt;          .
04/08/2019  06:39 AM    &lt;DIR&gt;          ..
04/08/2019  06:36 AM            52,087 Temp.zip
04/08/2019  06:39 AM               566 Temp.zip.sig
               2 File(s)         52,653 bytes
               2 Dir(s)  110,105,157,632 bytes free

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;gpg -o OutTemp.zip --decrypt Temp.zip.sig
gpg: assuming signed data in 'Temp.zip'
gpg: Signature made 04/08/19 06:39:03 Pacific Daylight Time
gpg:                using RSA key ZZZ___WORK_SIG___ZZZ
gpg: Good signature from "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]
gpg:                 aka "Peter C. Jones &lt;peter.jones@__work__&gt;" [ultimate]

C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example&gt;dir
 Volume in drive C is Windows

 Directory of C:\Users\PETER~1.JON\AppData\Local\Temp\gpg-example

04/08/2019  06:39 AM    &lt;DIR&gt;          .
04/08/2019  06:39 AM    &lt;DIR&gt;          ..
04/08/2019  06:36 AM            52,087 Temp.zip
04/08/2019  06:39 AM               566 Temp.zip.sig
               2 File(s)         52,653 bytes
               2 Dir(s)  110,105,100,288 bytes free
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/42057</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42057</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Apr 2019 13:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Mon, 08 Apr 2019 11:28:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>,</p>
<p dir="auto">I’m getting <strong>serious</strong> again :-))</p>
<p dir="auto">In a post, above, I <strong>asked</strong> you about the fact that the <strong>GPG</strong> command <strong><code>gpg -u guy038 -o Test.7z -d npp.7.6.5.bin.7z.sig</code></strong> does <strong>not</strong> create a <strong><code>Test.7z</code></strong> archive, <strong>identical</strong> to the <strong><code>npp.7.6.5.bin.7z</code></strong> archive</p>
<p dir="auto">Whereas the <strong>previous</strong> GPG command <strong><code>gpg -u guy038 -o sol_4th.exe -d sol.exe.sig</code></strong> works nice and create a <strong>decrypted</strong> executable, <strong>identical</strong> to the original <strong><code>Sol.exe</code></strong> program</p>
<p dir="auto">I think that’s this behavior is quite <strong>logic</strong> :</p>
<p dir="auto"><strong>Firstly</strong>, I used my <strong>private</strong> part of my <strong>own</strong> certificate in order to <strong>sign</strong> the <strong><code>sol.exe</code></strong> program and create the <strong>signature</strong> <strong><code>sol.exe.sig</code></strong></p>
<p dir="auto"><strong>Secondly</strong>, I used my <strong>private</strong> key, again, to <strong>decrypt</strong> the <strong><code>sol.exe.sig</code></strong> <strong>signature</strong> and get an <strong>identical</strong> executable file</p>
<hr />
<p dir="auto">Now, when <strong>Don HO</strong> created the <strong><code>npp.7.6.5.bin.7z.sig</code></strong> <strong>signature</strong>, and all the others, he used his own <strong>private</strong> key. So, now, I <strong>cannot</strong> decrypt the <strong><code>npp.7.6.5.bin.7z.sig</code></strong> <strong>signature</strong>, because I would use <strong>my private</strong> key and not <strong>Don</strong>’s <strong>private</strong> one !</p>
<p dir="auto">In other words, <strong>Don</strong> must be the <strong>ONLY</strong> person which could be able to <strong>recover</strong> the original <strong><code>.7z</code></strong> archive in the <strong><code>Test.7z</code></strong> file , from the <strong><code>npp.7.6.5.bin.7z.sig</code></strong> <strong>signature</strong>, with the command :</p>
<p dir="auto"><strong><code>gpg -u Notepad++ -o Test.7z -d npp.7.6.5.bin.7z.sig</code></strong>, because he would use the <strong>private key</strong> of his certificate ! <strong>Peter</strong>, am I <strong>right</strong> about it ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42036</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42036</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 08 Apr 2019 11:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Sun, 07 Apr 2019 22:18:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a>,</p>
<p dir="auto">Hey, guys, we’re talking about <strong>serious</strong> things but completely <strong>off topic</strong> :-))</p>
<p dir="auto">So, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a>, here is my new <strong>induction</strong> cooktop : <strong><code>Sauter reference SPI4664B</code></strong> :</p>
<p dir="auto"><img src="https://camo.nodebb.org/b11ef5dd8beaa312f39c154767011a70d6e7209c?url=https%3A%2F%2Fi.imgur.com%2FALOwNSO.jpg" alt="img" class=" img-fluid img-markdown" /></p>
<p dir="auto">It has <strong><code>3</code></strong> burners ( 1 of <strong><code>2200W</code></strong> on the <strong>front right</strong> corner, 1 of <strong><code>3100W</code></strong>, on the  <strong>rear right</strong> corner and 1 of <strong><code>5000W</code></strong>, on all the <strong>left</strong> part : the <strong>oval / rectangular</strong> field, that you spoke of ). Unfortunately, <strong>NO</strong> knob at all and, as you said, only top <strong>touch controls</strong> on the vitro-ceramic <strong>glass</strong>. Power is adjustable from <strong><code>1</code></strong> to <strong><code>14</code></strong>, along with the <strong>“Boost”</strong> position, the <strong>strongest</strong> and the possibility of a <strong>timer</strong>, between <strong><code>1</code></strong> and <strong><code>99</code></strong> minutes.</p>
<p dir="auto">Initially, I thought that <strong>Sauter</strong> was a <strong>Swiss</strong> enterprise, but, from some sources, that seems rather a <strong>French</strong> mark ?</p>
<p dir="auto">Now, It’s up to you ! In a <strong>couple</strong> of weeks, I could tell you if this product mostly <strong>satisfy</strong> us :-))</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">Note that the <strong>indicated</strong> powers are the <strong>maximum</strong> values, rarely reached. For instance, with the <strong><code>3</code></strong> burners <strong>on</strong>, at <strong>medium</strong> position, it consumed about <strong><code>4800W</code></strong> only !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42035</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42035</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 07 Apr 2019 22:18:55 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Sun, 07 Apr 2019 20:41:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">now completely off topic: 👨‍🍳🍳<br />
(my apologies to all readers, the following is perhaps triggered by me skipping dinner today)</p>
<blockquote>
<p dir="auto">a simple first try just showed us that cooking is rather quick and requires less energy than our old vitro-ceramic cooktop ;-))</p>
</blockquote>
<p dir="auto">yes, induction is definitively the closest you can get to gas speed.<br />
do you have knobs or front control, or does it have top touch controls on the glass ?</p>
<p dir="auto">i ask because i’m planning to get a new one with at least one extendable oval or “rectangular” field, but i’m so stubbornly old school, that i refuse anything that doesn’t have a knob i can turn at the front, or any other kind of simulated analog control … i even get a personal crisis if i have to use a microwave oven that has a numeric keyboard, and not just a mechanical time knob which hits a real metal bell when it reaches zero 😉</p>
<p dir="auto">hmmmmmh … now that i said that, i’m wondering if i.t. was the right choice of job for me 😂</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42029</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42029</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 20:41:09 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Sun, 07 Apr 2019 20:14:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a>,</p>
<p dir="auto">Thanks for your <strong>kind</strong> words ! But the most <strong>incredible</strong> thing is that my new <strong>induction</strong> cooktop is <strong>fully</strong> installed and <strong>functional</strong> ;-)) … … Without any <strong>burned</strong> fingers ! By the way, a simple <strong>first</strong> try just showed us that cooking is rather <strong>quick</strong> and requires <strong>less</strong> energy than our <strong>old</strong> vitro-ceramic cooktop ;-))</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42027</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42027</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 07 Apr 2019 20:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Sun, 07 Apr 2019 11:40:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<blockquote>
<p dir="auto">due to the installation of a new induction cooktop ( not yet finished…! )</p>
</blockquote>
<p dir="auto"><strong>off topic</strong>: i hope it’s not one of those types, where you have touch controls <strong>on top</strong> of the cooktop.</p>
<p dir="auto">nowadays the majority of cooktops are this utterly birdbrained kind, and i really hate this, as i would always move some pan or pot on top of it, causing emergency switch offs of all 4-6 cooking plates. (worse on some models with built in multi timer, doing a complete multi-timer reset after shutdown)</p>
<p dir="auto">i think those cooktop types are about the only thing, which can cause that i lose my temper completely ! 😂😂😂<br />
especially if i burn my fingers, touching the controls that are now super-heated by a pan, because on almost all models, the touch controls would not even react to a <code>re-switch-on to salvage the dinner</code> attempt, if i touch the controls through a cloth or glove. 😤😤😤</p>
<p dir="auto"><strong>on topic</strong>: kudos and thank you so much for digging into this matter so incredibly quick, as well as for sharing the learning in progress while doing so.<br />
i think it helps everyone like me, to get up to date on that, as it is written not assuming any non written or linked prerequisite of knowledge beforehand, and we have a good reference topic for the future. 👍</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42009</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 07 Apr 2019 11:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Fri, 04 Jun 2021 12:15:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a> and <strong>All</strong>,</p>
<p dir="auto">At this point I asked myself about the <strong>encryption/decryption</strong> processes :</p>
<p dir="auto">The general <strong>GPG</strong> commands to <strong>encrypt /decrypt</strong> a file, named <strong><code>&lt;File.ext&gt;</code></strong>, are :</p>
<ul>
<li>
<p dir="auto">To <strong>encrypt</strong> : <strong><code>gpg [ -a ] [ -u &lt;Sender User Name&gt; ] -r &lt;Receiver User Name&gt; [ -o &lt;Output File&gt; ] -e &lt;File.ext&gt;</code></strong></p>
</li>
<li>
<p dir="auto">To <strong>decrypt</strong> : <strong><code>gpg [ -u &lt;Sender User Name&gt; ] -o &lt;Output File&gt; -d &lt;File.ext.gpg&gt; | &lt;File.ext.asc&gt;</code></strong></p>
</li>
</ul>
<p dir="auto">In case you’re <strong>paranoid</strong> and you want to <strong>encrypt/decrypt</strong> your <strong>OWN</strong> files :</p>
<ul>
<li>
<p dir="auto">During <strong>encryption</strong> :</p>
<ul>
<li>
<p dir="auto">As you choose yourself as a <strong>recipient</strong>, the option <strong><code>-r</code></strong> should be <strong><code>-r &lt;Your User Name&gt;</code></strong> and the <strong><code>-u</code></strong> option is <strong>not</strong> necessary</p>
</li>
<li>
<p dir="auto">The <strong><code>-o</code></strong> option is <strong>optional</strong>. In that case, the <strong>default output</strong> file is ( idem for <strong>signing</strong> ) :</p>
<ul>
<li>
<p dir="auto"><strong><code>&lt;File.ext.gpg&gt;</code></strong> in case of an <strong>encryption</strong> of a <strong>binary</strong> file ( without the <strong><code>-a</code></strong> option )</p>
</li>
<li>
<p dir="auto"><strong><code>&lt;File.ext.asc&gt;</code></strong> in case of an <strong>encryption</strong> of a <strong>text</strong> file ( with the <strong><code>-a</code></strong> option )</p>
</li>
</ul>
</li>
</ul>
</li>
<li>
<p dir="auto">During <strong>decryption</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong><code>-u &lt;Sender User Name&gt;</code></strong> option is generally <strong>useless</strong> as your <strong>right private</strong> key, in order to <strong>decrypt</strong>, should be chosen <strong>automatically</strong> !</p>
</li>
<li>
<p dir="auto">Then, <strong>GPG</strong> will ask you for the <strong>“passphrase”</strong> of your <strong>according</strong> certificate</p>
</li>
<li>
<p dir="auto">Note that the <strong><code>-o</code></strong> option is <strong>mandatory</strong>, otherwise the <strong>binary/text</strong> file is <strong>dumped</strong> to the standard <strong>output</strong> !</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">To that purpose, I used the well-known <strong>binary</strong> file <strong><code>sol.exe</code></strong> ( The Window <strong>Solitaire</strong> card game ! ) and a simple <strong>text</strong> file, named <strong><code>Test.txt</code></strong>, containing the line <strong><code>----- This is a test --------</code></strong>, surrounded with <strong>two</strong> line-breaks</p>
<p dir="auto">So :</p>
<ul>
<li>To <strong>encrypt</strong> the <strong>binary</strong> file <strong><code>sol.exe</code></strong> in a file, named <strong><code>encrypted.exe</code></strong>, use the <strong><code>-e</code></strong> command with <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -r guy038 -o encrypted.exe -e sol.exe

C:\Program Files\gnupg\bin ( 0:37:07)


&gt;type encrypted.exe
à☺♀♥ÇÕ╬øâ-Õ Ö↓tü►m ♦¸O@ö-Q█ÀAa=╔ÄÙ¨C/X¿╩Ðyf♥▄c▬î┬÷┐kÕ
ºÝ¼¢Râ³░╣╝¤µ╚↕äa;û/¹)y╣¶Uhy▀Éº╠±-á­Î\┐┘O&amp;·BV¨8♫♀‗á↑­║│c©Ø╬┌uä└= *QÙ4ê?éIÓh;:O├óÿ9õåN¨è`mÙ+╝╔1¥=9Q╝ñ:!±7█┘¶-↨f♣░╣I═←orq*ïÇ┤♀ÐÛ²eì┌
</code></pre>
<ul>
<li>To <strong>encrypt</strong> the <strong>binary</strong> file <strong><code>sol.exe</code></strong> in a file, with <strong>default</strong> name <strong><code>sol.exe.gpg</code></strong>, use the <strong><code>-e</code></strong> command, without <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -r guy038 -e sol.exe

C:\Program Files\gnupg\bin ( 0:40:20)


&gt;type sol.exe.gpg
à☺♀♥ÇÕ╬øâ-Õ╩☺ mI¡ÔØt↓├¤«☺do     Ô·¶◄£Ï^R╩Õ³©R½░J└pV
C:\Program Files\gnupg\bin ( 0:40:36)
</code></pre>
<ul>
<li>To <strong>decrypt</strong> the <strong><code>encrypted.exe</code></strong> file and <strong>create</strong> the <strong>decrypted</strong> file, named <strong><code>sol_bis.exe</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o sol_bis.exe -d encrypted.exe
gpg: chiffré avec une clef RSA de 2048 bits, identifiant 80E5CE9B832DE5CA, créée le 2019-04-04
      « xxxxxx &lt;xxxx.xxx@gmail.com&gt; »

C:\Program Files\gnupg\bin ( 0:51:10)


&gt;fc sol.exe sol_bis.exe
Comparaison des fichiers sol.exe et SOL_BIS.EXE
FC : aucune différence trouvée
</code></pre>
<p dir="auto">The <strong>DOS</strong> <strong><code>fc</code></strong> command ( <strong>File Compare</strong> ) confirms that <strong><code>no difference found</code></strong> between the original <strong><code>sol.exe</code></strong> and the <strong>decrypted</strong> file <strong><code>sol_bis.exe</code></strong></p>
<ul>
<li>To <strong>decrypt</strong> the <strong><code>sol.exe.gpg</code></strong> file and <strong>create</strong> the <strong>decrypted</strong> file, named <strong><code>sol_ter.exe</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o sol_ter.exe -d sol.exe.gpg
gpg: chiffré avec une clef RSA de 2048 bits, identifiant 80E5CE9B832DE5CA, créée le 2019-04-04
      « xxxxxx &lt;xxxx.xxx@gmail.com&gt; »

C:\Program Files\gnupg\bin ( 0:56:16)


&gt;fc sol.exe sol_ter.exe
Comparaison des fichiers sol.exe et SOL_TER.EXE
FC : aucune différence trouvée
</code></pre>
<p dir="auto">Again, the <strong>DOS</strong> <strong><code>fc</code></strong> command  confirms that the files <strong><code>sol.exe</code></strong> and <strong><code>sol_ter.exe</code></strong> are <strong>strictly identical</strong> !</p>
<ul>
<li>To <strong>encrypt</strong> the <strong>text</strong> file <strong><code>test.txt</code></strong> in a file, named <strong><code>encrypted.txt</code></strong>, use the <strong><code>-e</code></strong> command with <strong><code>-a</code></strong> and <strong><code>-o</code></strong> options :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -a -r guy038 -o encrypted.txt -e test.txt

C:\Program Files\gnupg\bin ( 1:00:00)


&gt;type encrypted.txt
-----BEGIN PGP MESSAGE-----

hQEMA4DlzpuDLeXKAQf/TbCa25cxoNZAm5BKEZ0x9CFgImUx4ch27C94N6MeOcHw
OA2zlMj9XsS7X81qhFv+j10zg14AV03UFvSkmUj361Lav5L+hwW1lfe6p6lOjMP0
VbIolo6vc+/MZS3QhE6wwCGyr69FMFD7PFFjCSbMqGtrysn6x+RwHBtV1drnHYu/
nf+D4/aHuIFFdjSHdqopE5fUWlfMQkCcDrfTUkqTMhFcqwD/uT8CuflRkozjj6OY
6icJm/azcog1kJ5sSHEfCPCSMDUYchMUGC/Kbk38wQc0W9F6ErkfaIKk5hQcQM6V
q6OauTsg2TDD2I2Bq/kWE+SNUEcW4gxmGbX1HE0qgNJYAb0dZ0k0gupCneuEWBRh
bzcwDBFKEwcyONk6oKLgYFPhBXcmImiSGSB9FVPDGJ+nh1Kx7cbAoTLsMbFEDPEx
Gz4i87sacXGb4t8uFB0p208ASVK8vTuruw==
=T62g
-----END PGP MESSAGE-----
</code></pre>
<ul>
<li>To <strong>encrypt</strong> the <strong>text</strong> file <strong><code>test.txt</code></strong> in a file, with <strong>default</strong> name <strong><code>test.txt.asc</code></strong>, use the <strong><code>-e</code></strong> command with the <strong><code>-a</code></strong> option, and without the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -a -r guy038 -e test.txt

C:\Program Files\gnupg\bin ( 1:04:55)


&gt;type test.txt.asc
-----BEGIN PGP MESSAGE-----

hQEMA4DlzpuDLeXKAQf+KQ17Vtom6Ln4nsv1S4HbCaKIuIZLkJAuopxtXMGT3ThS
0DESEcj/nNjZFUUuSGmOXalQeOw4/EVjFPeCrLqLiNXoazwZsy0UMqw3BYbvH4Yi
77UenaOYhEzmoUX+9Y5DsHZSkoUpmcTzZmdgDuypiwMg7AQwu7v/NJwK1Vkg4g1n
koXApV0843NjQoC7zJyK76E1PN/TegJwH1IQ2nWJeaAsdF0h9c1Xgidk1wlBOzb1
CkSZZONRYbVS0d06hWBZqep70TdEseVq2Pt1g06dXBJRTN1sVSncotZG35eGVycV
FCTmnsGd12bNONIkB6GXtEYjpRSULPHMxNvLLxyk1tJYAcdjEtx55SzMzq2tb4Vq
4o4DPaBZmV4RyqT36DC6IzHRjEwJbpxZGJBniaN9m0C9V6gGL1gtSVxb1zuO/jAv
/3yDqsJHEAyqOhJYiSbbsOeqkD/8DEztYg==
=aUbu
-----END PGP MESSAGE-----
</code></pre>
<ul>
<li>To <strong>decrypt</strong> the <strong><code>encrypted.txt</code></strong> file and create the <strong>decrypted</strong> file, named <strong><code>Test_bis.txt</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o Test_bis.txt -d encrypted.txt
gpg: chiffré avec une clef RSA de 2048 bits, identifiant 80E5CE9B832DE5CA, créée le 2019-04-04
      « xxxxxx &lt;xxxx.xxx@gmail.com&gt; »

C:\Program Files\gnupg\bin ( 1:40:53)


&gt;fc test.txt Test_bis.txt
Comparaison des fichiers test.txt et TEST_BIS.TXT
FC : aucune différence trouvée
</code></pre>
<p dir="auto">Again, the files <strong><code>test.txt</code></strong> and <strong><code>Test_bis.txt</code></strong> are <strong>identical</strong></p>
<ul>
<li>To <strong>decrypt</strong> the <strong><code>test.txt.asc</code></strong> file and create the <strong>decrypted</strong> file, named <strong><code>Test_ter.txt</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o Test_ter.txt -d test.txt.asc
gpg: chiffré avec une clef RSA de 2048 bits, identifiant 80E5CE9B832DE5CA, créée le 2019-04-04
      « xxxxxx &lt;xxxx.xxx@gmail.com&gt; »

C:\Program Files\gnupg\bin ( 1:57:15)


&gt;fc test.txt Test_ter.txt
Comparaison des fichiers test.txt et TEST_TER.TXT
FC : aucune différence trouvée
</code></pre>
<p dir="auto">Again, the files <strong><code>test.txt</code></strong> and <strong><code>Test_ter.txt</code></strong> are <strong>identical</strong></p>
<hr />
<p dir="auto">Finally, I tried to test the <strong>signing</strong> process, but… I’m <strong>not</strong> so <strong>confident</strong> about what I’ve found out, below  :-((</p>
<ul>
<li>To <strong>sign</strong> the <strong><code>sol.exe</code></strong> program, use the <strong><code>-s</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy.038 -o sol.exe.sig -s sol.exe

C:\Program Files\gnupg\bin (14:58:59)


&gt;type sol.exe.sig
ú☺ý╣♂XTÕ÷8╝å↓`Èü↓§♀‼ì¶O¶ÛAG:↕Y ♀Ä):82â)         8l÷8XÇÏH9mº¼Ë═Äòfv:ı´dùôf7­♠¿Ö¿®®§ÜÍãí─←óó¹[Ù¦3Ç&amp;þ£´{×´ ³ ▀¾mX¾ÌÍ{[´zÎÝ]↓ñ♦ÁbðK♥╬À÷»nT³OSð#üÑEàú‗╩‗f
µÁ☼▓·tV×^0ÎF}{Z½╔ 0Eíä¬e§±¥║&amp;ð*·(☻☺▓░P)ÎUgÒÅ♫íÿ§§,´ÓÅY☻Uþê◄ÅõEöÏ↨F¶,îH×fÄXPöø7*(¿wñwîó)☺│úG┌┤¦ß▲äãÓ(ûFÅ,ðZX¨QÝ}ÿ~◄&lt;Æıƒ
F┤G☻§È\┼
îh:╣?t&amp;ý;└'öALx╝gÜF¶ Åö╚└I▀±Nó÷Ù↓o¶ƒWãSÜÚ]►ÝUu#N♦└£Q╣9|♫µW►3ðÌi╠Gn─K ¿↓URZ2↨╝{á¢ö#õ■☺/ß█1ı±F╠´┴ÈýMþ`J§♂╝eªJ}u³‼Ì·§ÿÄ╣^◄ JÀ▒▬ö.Ü[┬Å╩-,ä─dKóiÆ~♀+L6Lƒj
S|¿IËRôf°3←
  Õû#Ä╝AG∟ºç▲q∟
</code></pre>
<ul>
<li>Oddly, to <strong>check</strong> the signature, with the <strong><code>--verify</code></strong> command, gives :</li>
</ul>
<pre><code class="language-diff">&gt;gpg --verify sol.exe.sig sol.exe
gpg: la signature n'est pas détachée
</code></pre>
<p dir="auto">i.e. In <strong>English</strong>, the message <strong><code>gpg: the signature is not detached</code></strong></p>
<ul>
<li>But to <strong>check</strong> and <strong>extract</strong> the <strong>original</strong> document, from <strong><code>sol.exe.sig</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o sol_4th.exe -d sol.exe.sig
gpg: Signature faite le 04/06/19 14:58:15 Paris, Madrid (heure d'ÚtÚ)
gpg:                avec la clef RSA 245CFFF794538086A34E1E5B1B9616F3F01385D1
gpg:                issuer "xxxx.xxx@gmail.com"
gpg: Bonne signature de « xxxxxx &lt;xxxx.xxx@gmail.com&gt; » [ultime]

C:\Program Files\gnupg\bin (15:06:02)


&gt;fc sol.exe sol_4th.exe
Comparaison des fichiers sol.exe et SOL_4TH.EXE
FC : aucune différence trouvée
</code></pre>
<p dir="auto">Once more time, the files <strong><code>sol.exe</code></strong> and <strong><code>sol_4th.exe</code></strong> are <strong>identical</strong></p>
<p dir="auto"><strong>Remark</strong> :</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, I don’t understand something, yet :-((</p>
<p dir="auto">From what it is said, just <strong>before</strong> the <strong>Clearsigned Documents</strong> section, of that article, below :</p>
<p dir="auto"><a href="https://www.gnupg.org/gph/en/manual/x135.html" rel="nofollow ugc">https://www.gnupg.org/gph/en/manual/x135.html</a></p>
<blockquote>
<p dir="auto">Given a signed document, you can either check the signature or check the signature and recover the original document. To check the signature use the --verify option. To verify the signature and extract the document use the --decrypt option. The signed document to verify and recover is input and the recovered document is output.</p>
</blockquote>
<p dir="auto">In that case, the command <strong><code>gpg -u guy038 -o Test.7z -d npp.7.6.5.bin.7z.sig</code></strong> should <strong>verify</strong> the <strong>signature</strong> and recover the <strong>original</strong> archive, in the <strong><code>Test.7z</code></strong> file, in the <strong>same</strong> way it did, with the command <strong><code>gpg -u guy038 -o sol_4th.exe -d sol.exe.sig</code></strong>, above !. However, this does <strong>not</strong> work as the <strong><code>Test.7z</code></strong> file is <strong>not</strong> created. It just says :</p>
<pre><code class="language-diff">&gt;"c:\Program Files"\gnupg\bin\gpg -u guy038 -o Test.7z -d npp.7.6.5.bin.7z.sig
gpg: les données signées sont supposées être dans « npp.7.6.5.bin.7z »
gpg: Signature faite le 03/30/19 20:40:08 Paris, Madrid
gpg:                avec la clef RSA 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: Bonne signature de « Notepad++ &lt;don.h@free.fr&gt; » [totale]
</code></pre>
<p dir="auto">i.e. in <strong>English</strong> language :</p>
<pre><code class="language-diff">&gt;"c:\Program Files"\gnupg\bin\gpg -u guy038 -o Test.7z -d npp.7.6.5.bin.7z.sig
gpg: the signed data are supposed to be in « npp.7.6.5.bin.7z »
gpg: Signature made on 03/30/19 20:40:08 Paris, Madrid
gpg:                With key RSA 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: Good signature from « Notepad++ &lt;don.h@free.fr&gt; » [full]
</code></pre>
<p dir="auto"><strong>Why</strong> ??? May be it’s because that <strong>old</strong> documentation ( from <strong>1999</strong> ) is really <strong>obsolete</strong> !</p>
<ul>
<li>To sign the <strong><code>sol.exe</code></strong> program and create a <strong>signature</strong>, with <strong>default</strong> name <strong><code>sol.exe.gpg</code></strong>, use the <strong><code>-s</code></strong> command, without the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy.038 -s sol.exe

C:\Program Files\gnupg\bin (15:13:44)

&gt;type sol.exe.gpg
ú☺ý╣♂XTÕ÷8╝å↓`Èü↓§♀‼ì¶O¶ÛAG:↕Y ♀Ä):82â)         8l÷8XÇÏH9mº¼Ë═Äòfv:ı´dùôf7­♠¿Ö¿®®§ÜÍãí─←óó¹[Ù¦3Ç&amp;þ£´{×´ ³ ▀¾mX¾ÌÍ{[´zÎÝ]↓ñ♦ÁbðK♥╬À÷»nT³OSð#üÅ¶õÄ╩+╦ø
²╬·3®☼»♦% ¿►$   `‼╚_☻³þO¥cs0|ÊÙø;7)ª|sþ♀[AiDqIÐ╝Æ£♣◄ss▬.,Ô#▲╔ï(▒/î(X↑æ&lt;═∟▒á(7oTPP´H´↑ES☻fGÅ┤i╗├ì┴Q,ì▲YáÁ░‗ú┌¹0²"x$½?←╠k▼d§Ú¼&lt;¢`«ì·÷┤Vô☺`èB      U╦*Ô
}uMáU¶Q♦☻daíR«½╬ã▼↔B1+*XÌ☼└▼│♦¬╬◄§îhÅ♦*¿╣è§↑Ðtr⌂ÞLÏw°◄ÇO(âÿ­x¤4ìÞ►■▼)☼Éüô¥ÒØDÝÎ3Ì(&gt;»îº4Ë╗ ┌½ÛFÇ9úrs°∟╠» fá¢ËÿÅ▄êù P3¬ñ┤d.x¸@{)G╚²♥^┬Àc¬Òìÿ▀â®┘ø╬┴öÛ↨
x╦♫Lò·Û°'╝§+0↔s¢"■ònc-(]4Àä▼ò[ë╔ûDË$²↑Vÿlÿ&gt;ı0┼[ÿÿý½N7←ª{│IëËô═,g6
C:\Program Files\gnupg\bin (15:20:31)
</code></pre>
<ul>
<li>To <strong>check</strong> and <strong>extract</strong> the <strong>original</strong> document, from <strong><code>sol.exe.gpg</code></strong>, use the <strong><code>-d</code></strong> command and the <strong><code>-o</code></strong> option :</li>
</ul>
<pre><code class="language-diff">&gt;gpg -u guy038 -o sol_5th.exe -d sol.exe.gpg
gpg: Signature faite le 04/06/19 15:13:19 Paris, Madrid (heure d'ÚtÚ)
gpg:                avec la clef RSA 245CFFF794538086A34E1E5B1B9616F3F01385D1
gpg:                issuer "xxxx.xxx@gmail.com"
gpg: Bonne signature de « xxxxxx &lt;xxxx.xxx@gmail.com&gt; » [ultime]

C:\Program Files\gnupg\bin (15:31:54)

&gt;fc sol.exe sol_5th.exe
Comparaison des fichiers sol.exe et SOL_5TH.EXE
FC : aucune différence trouvée
</code></pre>
<p dir="auto">For the last time, the <strong>comparison</strong> of the files <strong><code>sol.exe </code></strong> and <strong><code>sol_5th.exe</code></strong> are <strong>identical</strong></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto"><strong>Peter</strong>, I would like to re-create my <strong>key-pair</strong>, with a <strong>size</strong> of <strong><code>4096</code></strong> bytes ( instead of <strong><code>2048</code></strong> ) I suppose that the <strong>best</strong> way is to <strong>delete</strong> my present <strong>key-pair</strong> and generate a <strong>new</strong> key-pair, afterwards, isn’t it ? So, from the manual, I would have to use, first, one of these <strong>three</strong> commands, below :</p>
<pre><code class="language-diff">--delete-keys name

    Remove key from the public keyring. In batch mode either --yes is required or the key must be specified by fingerprint. This is a safeguard against accidental deletion of multiple keys.

--delete-secret-keys name

    Remove key from the secret keyring. In batch mode the key must be specified by fingerprint. The option --yes can be used to advice gpg-agent not to request a confirmation. This extra pre-caution is done because gpg can’t be sure that the secret key (as controlled by gpg-agent) is only used for the given OpenPGP public key.

--delete-secret-and-public-key name

    Same as --delete-key, but if a secret key exists, it will be removed first. In batch mode the key must be specified by fingerprint. The option --yes can be used to advice gpg-agent not to request a confirmation.
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/42007</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42007</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 04 Jun 2021 12:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Sat, 19 Nov 2022 03:54:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9520">@meta-chuh</a> and <strong>All</strong>,</p>
<p dir="auto"><em>Off topic</em> : Sorry I have <strong>not</strong> been around in the <strong>last</strong> few days, as I’ve been pretty <strong>busy</strong>… modifying my kitchen worktop, due to the installation of a new <strong>induction</strong> cooktop ( <strong>not</strong> yet finished…! )</p>
<p dir="auto">Thank you very much, <strong>Peter</strong>, for your <strong>valuable</strong> advice. You put me on the <strong>right</strong> direction ;-))</p>
<p dir="auto">Of course, I read some articles on <strong>gpg</strong> software, from <strong>current</strong> documentation :</p>
<p dir="auto"><a href="https://gnupg.org/documentation/manuals/gnupg/" rel="nofollow ugc">https://gnupg.org/documentation/manuals/gnupg/</a></p>
<p dir="auto"><a href="https://gnupg.org/documentation/manuals/gnupg/Option-Index.html#Option-Index" rel="nofollow ugc">https://gnupg.org/documentation/manuals/gnupg/Option-Index.html#Option-Index</a></p>
<p dir="auto">And from the <strong>old</strong> documentation :</p>
<p dir="auto"><a href="https://www.gnupg.org/gph/en/manual/book1.html" rel="nofollow ugc">https://www.gnupg.org/gph/en/manual/book1.html</a></p>
<p dir="auto">I also got some pieces of information from, these <strong>two</strong> sites :</p>
<p dir="auto"><a href="http://www.amssolarempire.com/Documents/GPGHowto3.htm" rel="nofollow ugc">http://www.amssolarempire.com/Documents/GPGHowto3.htm</a></p>
<p dir="auto"><a href="http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/" rel="nofollow ugc">http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/</a></p>
<p dir="auto">Finally, I found out some <strong>valuable</strong> information, about all these <strong>cryptographic</strong> notions, in <strong>chapters</strong> <strong><code>2</code></strong>, <strong><code>4</code></strong>, <strong><code>24</code></strong> and <strong><code>25</code></strong>, of the complete <strong>pdf</strong> manual of <strong>Gpg4 Win</strong> ( the <strong>Windows-GUI</strong> version of <strong>gpg.exe</strong> ), below, that you may download :</p>
<p dir="auto"><a href="https://files.gpg4win.org/doc/gpg4win-compendium-en.pdf" rel="nofollow ugc">https://files.gpg4win.org/doc/gpg4win-compendium-en.pdf</a></p>
<p dir="auto">So, <strong>roughly</strong>, from what I understand :</p>
<ul>
<li>
<p dir="auto">A <strong>GPG certificate</strong> contents <strong>two</strong> parts :</p>
<ul>
<li>
<p dir="auto">A <strong><code>secret</code></strong> or <strong><code>private</code></strong> key, which must be kept <strong>totally</strong> secret !</p>
</li>
<li>
<p dir="auto">A <strong><code>public</code></strong> key, which should be <strong>totally</strong> public !</p>
</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Encryption / Decryption</strong> process, based on the certificate of the <strong>recipient</strong> ( <strong><code>User B</code></strong> ) :</p>
<ul>
<li>
<p dir="auto"><strong><code>User A</code></strong> <strong>crypts</strong> a file with the <strong><code>public</code></strong> key part, of a <strong>certificate</strong> of <strong><code>User B</code></strong> ( <strong>previously</strong> sent to <strong>User A</strong>, by <strong>User B</strong> )</p>
</li>
<li>
<p dir="auto">Later, <strong><code>User B</code></strong> can <strong>decrypts</strong> this file, with the <strong><code>private</code></strong> key  part of his <strong>own</strong> certificate ( <strong><code>B</code></strong> )</p>
</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Signing</strong> process, based on the certificate of the <strong>sender</strong> ( <strong><code>User A</code></strong> ) :</p>
<ul>
<li>
<p dir="auto"><strong><code>User A</code></strong> creates a <strong>signature</strong> of a file with the <strong><code>private</code></strong> key part of his <strong>own</strong> certificate ( <strong><code>A</code></strong> ).</p>
</li>
<li>
<p dir="auto">Later, <strong><code>User B</code></strong> can <strong>authenticate</strong> this signature, with the <strong><code>public key</code></strong> part of the <strong>certificate</strong> of <strong><code>User A</code></strong> ( <strong>previously</strong> sent to <strong>User B</strong>, by <strong>User A</strong> )</p>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="auto">Now, I’ll try to explain the different steps and <strong>GPG</strong> commands that I have used ! Sorry, because almost all <strong>output</strong> text is, partially, in <strong>French</strong> ;-)) I tried to translate the <strong>main</strong> messages.</p>
<p dir="auto"><strong>Peter</strong>, you omitted to mention the creation of a first <strong>key pair</strong>. But, as it’s needed to <strong>sign</strong> a key, I think it’s better to generate a <strong>key-pair</strong> first, anyway.</p>
<ul>
<li>So I began, using the <strong><code>--gen-key</code></strong> command :</li>
</ul>
<pre><code class="language-diff">&gt;gpg --gen-key
gpg (GnuPG) 2.2.15; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Remarque : Utilisez « gpg --full-generate-key » pour une fenêtre de dialogue de génération de clef complète.

GnuPG doit construire une identité pour identifier la clef.

Nom réel : guy038
Adresse électronique : xxxx.xxx@gmail.com
Vous avez sélectionné cette identité :
    « xxxxxx &lt;xxxx.xxx@gmail.com&gt; »

Changer le (N)om, l'(A)dresse électronique ou (O)ui/(Q)uitter ? o
De nombreux octets aléatoires doivent être générés. Vous devriez faire
autre chose (taper au clavier, déplacer la souris, utiliser les disques)
pendant la génération de nombres premiers ; cela donne au générateur de
nombres aléatoires une meilleure chance d'obtenir suffisamment d'entropie.
De nombreux octets aléatoires doivent être générés. Vous devriez faire
autre chose (taper au clavier, déplacer la souris, utiliser les disques)
pendant la génération de nombres premiers ; cela donne au générateur de
nombres aléatoires une meilleure chance d'obtenir suffisamment d'entropie.
gpg: clef 1B9616F3F01385D1 marquée de confiance ultime.
gpg: répertoire « C:/Documents and Settings/Guy/Application Data/gnupg/openpgp-revocs.d » créé
gpg: revocation certificate stored as 'C:/Documents and Settings/Guy/Application Data/gnupg/openpgp-revocs.d\245CFFF794538086A34E1E5B1B9616F3F01385D
1.rev'
les clefs publique et secrète ont été créées et signées.

pub   rsa2048 2019-04-04 [SC] [expire : 2021-04-03]
      245CFFF794538086A34E1E5B1B9616F3F01385D1
uid                      xxxxxx &lt;xxxx.xxx@gmail.com&gt;
sub   rsa2048 2019-04-04 [E] [expire : 2021-04-03]
</code></pre>
<p dir="auto">After entering <strong>yes</strong>, you’ll be asked to enter a <strong>“passphrase”</strong>. Be <strong>creative</strong> using more than <strong><code>12</code></strong> characters, different <strong>case</strong>-letter, <strong>digits</strong> and <strong>symbols</strong>, based on a phrase relative to one <strong>event</strong> of your *<em>life</em>, for instance !</p>
<p dir="auto"><strong>Remark</strong> : I calculated that, with my <strong><code>16-chars</code></strong> <strong>chosen</strong> password, taken from the list of <strong>ASCII</strong> chars, except for the <strong>control</strong> chars, there are <strong><code>96 ^ 16 = 52,040,292,466,647,269,602,037,015,248,896</code></strong> possibilities. So, even if a computer could test <strong><code>10^12</code></strong> combinations per <strong>second</strong> ( or <strong><code>1,000</code></strong> computers could test <strong><code>10^9</code></strong> combinations per <strong>second</strong> ) , it would take <strong><code>52,040,292,466,647,269,602</code></strong> seconds or about <strong><code>1,650</code></strong>  <strong>billion years</strong> to test <strong>all</strong> the possibilities !!</p>
<p dir="auto">After validating your <strong>“passphrase”</strong>, you’ll be asked to type on your <strong>keyboard</strong> or move the <strong>mouse</strong> around and click, in order to seed a <strong>random</strong> number for the <strong>key generating</strong> process !</p>
<p dir="auto">After a while, I got the confirmation message <em>“The public and secret keys have been created and signed”</em>. A key size of <strong><code>2048</code></strong> bytes has been used, by <strong>default</strong>.</p>
<p dir="auto"><strong>Note</strong> : I could have used the <strong><code>gpg --full-gen-key</code></strong> command, which, in addition, allows you to choose the <strong>key type</strong> and <strong>size</strong>, as described below :</p>
<pre><code class="language-diff">&gt;gpg --full-gen-key
gpg (GnuPG) 2.2.15; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Sélectionnez le type de clef désiré :
   (1) RSA et RSA (par défaut)
   (2) DSA et Elgamal
   (3) DSA (signature seule)
   (4) RSA (signature seule)
Quel est votre choix ? 1
les clefs RSA peuvent faire une taille comprise entre 1024 et 4096 bits.
Quelle taille de clef désirez-vous ? (2048) 4096
La taille demandée est 4096 bits
Veuillez indiquer le temps pendant lequel cette clef devrait être valable.
         0 = la clef n'expire pas
      &lt;n&gt;  = la clef expire dans n jours
      &lt;n&gt;w = la clef expire dans n semaines
      &lt;n&gt;m = la clef expire dans n mois
      &lt;n&gt;y = la clef expire dans n ans
Pendant combien de temps la clef est-elle valable ? (0) 0
La clef n'expire pas du tout
Est-ce correct ? (o/N) o

GnuPG doit construire une identité pour identifier la clef.

Nom réel : Smith001
Adresse électronique : ^C
...
...
</code></pre>
<ul>
<li>Then, I imported the <strong>public</strong> key of <strong>Notepad++</strong>, with the command <strong><code>gpg --import</code></strong></li>
</ul>
<pre><code class="language-diff">&gt;gpg --import nppGpgPub.asc
gpg: clef 6C429F1D8D84F46E : clef publique « Notepad++ &lt;don.h@free.fr&gt; » importée
gpg:       Quantité totale traitée : 1
gpg:                     importées : 1
</code></pre>
<ul>
<li>So, I verified the <strong>signature</strong> of my downloaded <strong><code>npp.7.6.5.bin.7z</code></strong> archive, with the <strong><code>--verify</code></strong> command :</li>
</ul>
<pre><code class="language-diff">&gt;"C:\Program Files\gnupg\bin\gpg.exe" --verify npp.7.6.5.bin.7z.sig npp.7.6.5.bin.7z
gpg: Signature faite le 03/30/19 20:40:08 Paris, Madrid
gpg:                avec la clef RSA 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: Bonne signature de « Notepad++ &lt;don.h@free.fr&gt; » [inconnu]
gpg: Attention : cette clef n'est pas certifiée avec une signature de confiance.
gpg:             Rien n'indique que la signature appartient à son propriétaire.
Empreinte de clef principale : 14BC E436 2749 B2B5 1F8C  7122 6C42 9F1D 8D84 F46E

In English :

Good signature from « Notepad++ &lt;don.h@free.fr&gt; » [unknown]
WARNING: This key is not certified with a trusted signature!
         There is no indication that the signature belongs to the owner.
</code></pre>
<ul>
<li>Now, I tell <strong>GPG</strong> to trust the <strong>Notepad++</strong> signature, from <strong>Don Ho</strong>, with the <strong><code>gpg --lsign-key</code></strong> command :</li>
</ul>
<pre><code class="language-diff">&gt;gpg --lsign-key 14BCE4362749B2B51F8C71226C429F1D8D84F46E

pub  rsa4096/6C429F1D8D84F46E
     créé : 2019-03-11  expire : 2021-03-11  utilisation : SC
     confiance : inconnu       validité : inconnu
sub  rsa4096/C7295A84DFABBC55
     créé : 2019-03-11  expire : 2021-03-11  utilisation : E
[ inconnue] (1). Notepad++ &lt;don.h@free.fr&gt;


pub  rsa4096/6C429F1D8D84F46E
     créé : 2019-03-11  expire : 2021-03-11  utilisation : SC
     confiance : inconnu       validité : inconnu
Empreinte clef princip. : 14BC E436 2749 B2B5 1F8C  7122 6C42 9F1D 8D84 F46E

     Notepad++ &lt;don.h@free.fr&gt;

Cette clef va expirer le 2021-03-11.
Voulez-vous vraiment signer cette clef avec votre
clef « xxxxxx &lt;xxxx.xxx@gmail.com&gt; » (1B9616F3F01385D1)

La signature sera marquée comme non exportable.

Voulez-vous vraiment signer ? (o/N) o
</code></pre>
<p dir="auto">It asked me to <strong>confirm</strong> signing that key with my <strong>private</strong> key and answer that this signature is marked as <strong>non-exportable</strong></p>
<ul>
<li>Tring again to verify the <strong>signature</strong> of <strong><code>npp.7.6.5.bin.7z</code></strong>, with the <strong><code>--verify</code></strong> command, I got, this time :</li>
</ul>
<pre><code class="language-diff">&gt;"C:\Program Files\gnupg\bin\gpg.exe" --verify npp.7.6.5.bin.7z.sig npp.7.6.5.bin.7z
gpg: Signature faite le 03/30/19 20:40:08 Paris, Madrid
gpg:                avec la clef RSA 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: vérification de la base de confiance
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: profondeur : 0  valables :   1  signées :   1
     confiance : 0 i., 0 n.d., 0 j., 0 m., 0 t., 1 u.
gpg: profondeur : 1  valables :   1  signées :   0
     confiance : 1 i., 0 n.d., 0 j., 0 m., 0 t., 0 u.
gpg: la prochaine vérification de la base de confiance aura lieu le 2021-03-11
gpg: Bonne signature de « Notepad++ &lt;don.h@free.fr&gt; » [totale]
</code></pre>
<ul>
<li>For <strong>information</strong>, I ran the <strong><code>--list-keys</code></strong>, <strong><code>--list-signatures</code></strong> and <strong><code>--list-secret-keys</code></strong> commands :</li>
</ul>
<pre><code class="language-diff">&gt;gpg --list-keys
C:/Documents and Settings/Guy/Application Data/gnupg/pubring.kbx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pub   rsa2048 2019-04-04 [SC] [expire : 2021-04-03]
      245CFFF794538086A34E1E5B1B9616F3F01385D1
uid          [  ultime ] xxxxxx &lt;xxxx.xxx@gmail.com&gt;
sub   rsa2048 2019-04-04 [E] [expire : 2021-04-03]

pub   rsa4096 2019-03-11 [SC] [expire : 2021-03-11]
      14BCE4362749B2B51F8C71226C429F1D8D84F46E
uid          [  totale ] Notepad++ &lt;don.h@free.fr&gt;
sub   rsa4096 2019-03-11 [E] [expire : 2021-03-11]


&gt;gpg --list-signatures
C:/Documents and Settings/Guy/Application Data/gnupg/pubring.kbx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pub   rsa2048 2019-04-04 [SC] [expire : 2021-04-03]
      245CFFF794538086A34E1E5B1B9616F3F01385D1
uid          [  ultime ] xxxxxx &lt;xxxx.xxx@gmail.com&gt;
sig 3        1B9616F3F01385D1 2019-04-04  xxxxxx &lt;xxxx.xxx@gmail.com&gt;
sub   rsa2048 2019-04-04 [E] [expire : 2021-04-03]
sig          1B9616F3F01385D1 2019-04-04  xxxxxx &lt;xxxx.xxx@gmail.com&gt;

pub   rsa4096 2019-03-11 [SC] [expire : 2021-03-11]
      14BCE4362749B2B51F8C71226C429F1D8D84F46E
uid          [  totale ] Notepad++ &lt;don.h@free.fr&gt;
sig 3        6C429F1D8D84F46E 2019-03-11  Notepad++ &lt;don.h@free.fr&gt;
sig   L      1B9616F3F01385D1 2019-04-04  xxxxxx &lt;xxxx.xxx@gmail.com&gt;
sub   rsa4096 2019-03-11 [E] [expire : 2021-03-11]
sig          6C429F1D8D84F46E 2019-03-11  Notepad++ &lt;don.h@free.fr&gt;


&gt;gpg --list-secret-keys
C:/Documents and Settings/Guy/Application Data/gnupg/pubring.kbx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sec   rsa2048 2019-04-04 [SC] [expire : 2021-04-03]
      245CFFF794538086A34E1E5B1B9616F3F01385D1
uid          [  ultime ] xxxxxx &lt;xxxx.xxx@gmail.com&gt;
ssb   rsa2048 2019-04-04 [E] [expire : 2021-04-03]
</code></pre>
<ul>
<li>Then I tried to <strong>export</strong> my <strong>public</strong> key to a <strong>plain text</strong> file with the <strong><code>--export</code></strong> command and the <strong><code>-a</code></strong> option ( I’ll have to <strong>send</strong> it to users to enable them to send me <strong>back</strong> some <strong>encrypted</strong> messages or files ! )</li>
</ul>
<pre><code class="language-diff">&gt;gpg --export -a "guy038" &gt; guy038GpgPub.asc

C:\Program Files\gnupg\bin (22:17:36)

&gt;type guy038GpgPub.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFyl+4gBCACXFnrTr5On/3RoANq0UY41UoTzUpyiCbknPcpbMzIWwGQdJUz3
3Xm+jLzK6WZiiZL/9WzfSzTl5iFmH+x/jASbb4X80q8+XpWneKC3hqh+awqBmUT5
JBgABJxijdj5PVCKMKQsDgf0mLgah1Jax7Im/4Ydvc3EkgoWXSNcUVrFtlh4tC+U
FYeFay1mSLUjAxEgQ7XYom91GtxhMiO5dgTo5x8/4Dw8KGSMefnsV2OQI9vUld2H
VLbjCa013MB/4wD3y1QESyFooDZUMeyzXg/zL67XqLf14LPwS0fkcy/PcsdGWtiz
a5QGk4Me5rfgzQxVSO8Df6cXBnl0MvcGjCZXABEBAAG0G2d1eTAzOCA8dGd1eS4w
MzhAZ21haWwuY29tPokBVAQTAQgAPhYhBCRc//eUU4CGo04eWxuWFvPwE4XRBQJc
pfuIAhsDBQkDwmcABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBuWFvPwE4XR
s5IH/R2p2A2RdPf6314uVQSlG6GoXrzv8OBn4oepc7QksVUAFmKJcQjqIfiKEa3a
GV5p4X6GdJVa1BE5LuaGtveSifrhJCm7ABIWGn4K+Tq5IhEg+S2ZZs0d2mKDM0Tm
I6Ph9TLJ0qxYWfV5um/pyVZlTF8E0NafaL6ZkFMWAeCwCOa42pk/SVnX7s6hI9Np
wLk01mxBSnMv32nNPWrMke7TIdd4tEZFTl16hd9Dkl+ypH9fUSiMuW7g8oHBu6R5
MfYtzm9ti1/cA8tD0ID9yU5hWDV1jmqeiPQaH/MuXt5YCYwJaIQLvEpnoEDz/X5Z
2v00QBRCDRUlGbJVaUVbsSKraEy5AQ0EXKX7iAEIANW3k2JOxwE80wkZsPfPhbaL
sLXn2bNPiHYdwLm9MMEMhpgRvXDLPNsFILEyYEerCA+Xu+X9N1ONq58p2Qh0r2Cs
p/7utRYbyQUIAMcvUtt5DMQVaiopIeG9AIw7y8rPFfSSTQXUNBGQeykuVRFKATPt
ny1XlPDURp6P78eixUrLTVuecMeDqLQapT8F0mvePPKNerAWVLm5lhsyMLBxnybK
DtnDE3rXj8UknLx77SyBRwKQ05IWw4gtv7FYDRrGvac1M8hkXQBPdwu5RO2meAgc
ZMMEGIvTXZoZdpqFtV6V/bGnNVE5eUibwdefxPcNBqLSjLOqi10OGdCDkItOQZEA
EQEAAYkBPAQYAQgAJhYhBCRc//eUU4CGo04eWxuWFvPwE4XRBQJcpfuIAhsMBQkD
wmcAAAoJEBuWFvPwE4XRshUH/21+qFp7b2vGjlbQCu9U3sd93F8/wzBEfXpKpqTl
QMuGQ84e5T2rN7TT/boHlFtBDsBP5YjDI9jTbp7KH4ReKnP/TRY1hnafovqVr00I
rp9S0EX0ac0zxk+8LUNmf5MwoBqDgOSsd66oNfJWjQwm09OQpg+qsbZTn/Ho0i1n
b77Rde/bipf+ayzW/+6o2dJMfGFJYHQMoeEFj1QO0TFW2NnGk+0P/TUR7UWzubRQ
gyF7YxXe7uI5AQjJSsgP26LxbHxoiOKmVcZj1dZOjUNNFG9SFY1iR8QGIo/KCVe3
tQVT9B0+RwsPzkRDNM4mHXkbYEPl4eSxtqTuxQ2jaPqYGQU=
=tVgX
-----END PGP PUBLIC KEY BLOCK-----
</code></pre>
<p dir="auto"><strong>Remarks</strong></p>
<ul>
<li>
<p dir="auto">This is just an example ! Do <strong>not</strong> paste it for <strong>further</strong> use, as I will <strong>change</strong> my certificate, very soon !</p>
</li>
<li>
<p dir="auto">If, the <strong><code>-a</code></strong> option is absent, the <strong>public key</strong> will be outputted as a <strong>binary</strong> file :</p>
</li>
</ul>
<pre><code class="language-diff">&gt;gpg --export "guy038" &gt; guy038GpgPub.gpg

C:\Program Files\gnupg\bin (23:28:24)

&gt;type guy038GpgPub.gpg
♦\Ñ¹ ù▬zË»ôº th ┌┤QÄ5Rä¾R£ó     ╣'=╩[32▬└d↔%L¸¦y¥î╝╩ÚfbëÆ §l▀K4Õµ!f▼ý⌂î♦øoà³Ê»&gt;^òºxáÀå¿~k
üÖD¨$↑ ♦£bìÏ¨=Pè0ñ,♫¶ÿ©
C:\Program Files\gnupg\bin (23:30:47)
</code></pre>
<p dir="auto">More in the <strong>next</strong> post !</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42006</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42006</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 19 Nov 2022 03:54:02 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Tue, 02 Apr 2019 21:35:11 GMT]]></title><description><![CDATA[<p dir="auto">(sorry about the multiedit to my post; akismet was getting in the way at first, and I had to cut some out, post, then paste it back in, and repost; and then I missed part of it, so had to grab my original from my NPP window, and re-edit/post again.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41868</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 02 Apr 2019 21:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Tue, 02 Apr 2019 21:40:20 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">whenever i hear gpg i feel like a caveman that sees an airplane for the first time ;-)<br />
but maybe <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14871">@saelic</a> has an answer, if you need even more information than provided by <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> .</p>
<p dir="auto">in the mean time, maybe there’s some information at the github gpg discussion that could be useful: <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2524" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2524</a></p>
<p dir="auto">it’s currently all way above my capabilities.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41867</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41867</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Tue, 02 Apr 2019 21:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to Need some help about GPG signatures... ! on Tue, 02 Apr 2019 21:34:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a>,</p>
<p dir="auto">since it’s my fault he started using gpg, I’ll try to help. :-)</p>
<p dir="auto">First, it’s okay to use the command-line.  I did.  (I don’t like the Kleopatra GUI; if I’m going to do GUI, I use the GPG4Win version of GPA, not of Kleopatra… but I’m weird that way.)</p>
<p dir="auto">First, you need to have the Notepad++ public key added to your keyring.  To do so, you can either download <a href="https://notepad-plus-plus.org/gpg/nppGpgPub.asc" rel="nofollow ugc">https://notepad-plus-plus.org/gpg/nppGpgPub.asc</a>, saving to your working directory, and use <code>gpg --import nppGpgPub.asc</code> .  Alternately (and the way I would recommend) is to use <code>gpg --search-keys 14BCE4362749B2B51F8C71226C429F1D8D84F46E</code> (*: that’s the whole fingerprint, which you quoted above): it should list only one match.  Then do <code>gpg --receive-keys 14BCE4362749B2B51F8C71226C429F1D8D84F46E</code>, which will put it in your keyring.</p>
<p dir="auto">At this point, if you tried to verify the signature (I’ll do the .zip, not the .7z, since that’s what I have):</p>
<pre><code>C:\usr\local\apps\npp.installers&gt;gpg --verify npp.7.6.5.bin.x64.zip.sig npp.7.6.5.bin.x64.zip
gpg: Signature made 03/30/19 12:40:11 Pacific Daylight Time
gpg:                using RSA key 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: Good signature from "Notepad++ &lt;don.h@free.fr&gt;" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 14BC E436 2749 B2B5 1F8C  7122 6C42 9F1D 8D84 F46E
</code></pre>
<p dir="auto">You would see “good signature” but “WARNING: THis key is not certified with a trusted signature!”</p>
<p dir="auto">The “good signature” is an indication that the .sig matches the downloaded file.  The “WARNING” is because you have not told gpg that you trust Notepad++ <a href="mailto:don.h@free.fr" rel="nofollow ugc">don.h@free.fr</a>’s signature.  In an ideal world, before doing any of the following, you would independently verify from Don himself that 14BCE4362749B2B51F8C71226C429F1D8D84F46E is the fingerprint of his key (in person, on an encrypted phone line, or something similar).  In a less-than-ideal world, because you can verify that the same person has access to both the notepad++ website and the notepad++ github repo, and posted the same fingerprint in both locations, you have a certain level of belief that it’s the right fingerprint for Notepad++ development.</p>
<p dir="auto">At this point, you can either live with the warning (if you are paranoid in the less-than-ideal world). Or you can “sign” the Notepad++ public key (using your private key).  There are two levels of signing it: you could sign it locally, which would just make tell your keyring that you “trust” the key… but your local-signing wouldn’t be able to go out in public to give public approval of his signature.  (You will want to research the Web of Trust to find out more about that.)  I will assume a local signing for now.  (If you ever want to change to a non-local signing, that’s easy to do.)</p>
<p dir="auto"><code>gpg --lsign-key 14BCE4362749B2B51F8C71226C429F1D8D84F46E</code>, then reply “y” to indicate you really want to: this will locally sign it. Now, if you redo the verification,</p>
<pre><code>C:\usr\local\apps\npp.installers&gt;gpg --verify npp.7.6.5.bin.x64.zip.sig npp.7.6.5.bin.x64.zip
gpg: Signature made 03/30/19 12:40:11 Pacific Daylight Time
gpg:                using RSA key 14BCE4362749B2B51F8C71226C429F1D8D84F46E
gpg: checking the trustdb
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   3  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   3  signed:   0  trust: 1-, 0q, 0n, 0m, 2f, 0u
gpg: next trustdb check due at 2021-03-11
gpg: Good signature from "Notepad++ &lt;don.h@free.fr&gt;" [full]
</code></pre>
<p dir="auto">It no longer gives the warnings.</p>
<p dir="auto">(*: Footnote: in the old days, they used to only use the last 8 hex digits of the fingerprint as the a shorthand, so many tutorials would have said 0x8D84F46E; but in modern days, there have been collisions in those last 8 digits, so it’s safest to use the full fingerprint, to avoid ambiguity. )</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41866</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41866</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 02 Apr 2019 21:34:00 GMT</pubDate></item></channel></rss>