|
|
|
|
Creating a nomad WinPT.
Abstract: WinPT is a Windows GUI front-end for GnuPG.
WinPT and GnuPG rely on registry settings and can only be used after
beeing installed. You cannot run them from a floppy or an USB key.
Solution: This guide will help you to create a "no-install" version of WinPT.
You will be able to run WinPT directly off a floppy disk or a USB key.
You will be able to use WinPT+gpg+your keyring without:
- having to install WinPT + gpg on harddisk.
- having to write your keyring on the harddisk.
- having to manually create/update WinPT and GnuPG registry settings
This does _not_ involve recompiling or tweaking WinPT nor GPG.
Required tools:
- GnuPG : encryption program
- WinPT : Shell to GnuPG
- AutoIt : Windows scripting
- UPX : Executable compressor.
Instructions:
1) Create an empty directory.
2) In this directory, create the file nomad_winpt.au3 with a text editor:
-----------cut here %-------------
RegWrite("HKEY_CURRENT_USER\Software\GNU\GnuPG", "HomeDir", "REG_SZ", @ScriptDir & "\keyring")
RegWrite("HKEY_CURRENT_USER\Software\GNU\GnuPG", "gpgProgram", "REG_SZ", @ScriptDir & "\GnuPG\gpg.exe")
RegWrite("HKEY_CURRENT_USER\Software\GNU\GnuPG", "OptFile", "REG_SZ", @ScriptDir & "\GnuPG\gpg.conf")
RegWrite("HKEY_CURRENT_USER\Software\WinPT", "Extensions", "REG_SZ", "1")
RegWrite("HKEY_CURRENT_USER\Software\WinPT\Keyserver", "Default", "REG_SZ", "http://wwwkeys.nl.pgp.net")
$val = RunWait(@ScriptDir & "\WinPT\winpt.exe", @ScriptDir & "\WinPT")
RegDelete("HKEY_CURRENT_USER\Software\GNU\GnuPG")
RegDelete("HKEY_CURRENT_USER\Software\WinPT")
Exit
-----------cut here %-------------
2) Download latest winpt-X.X.X-exe.zip
from http://sourceforge.net/project/showfiles.php?group_id=71360
and unzip to the \winpt subdirectory.
3) Download latest gnupg-w32cli-X.X.X.zip
from ftp://ftp.gnupg.org/gcrypt/binary/
and unzip to the \gnupg subdirectory.
(You can get rid of *.mo files)
4) Create an empty gpg.conf file in the \gnupg subdirectory
5) Create the \keyring subdirectory.
If you have an existing keyring, put it here
(otherwise WinPT will prompt you to create one.)
6) Download AutoIt v3 from http://www.autoitscript.com/autoit3/
and install it.
7) With AutoIt, compile the script nomad_winpt.au3 into nomad_winpt.exe
(Right-click on the script, choose "Compile Script"
or use the Script Compiler in the AutoIt menu.)
You can delete the nomad_winpt.au3 file.
8) Download latest upxXXXw.zip
from http://sourceforge.net/project/showfiles.php?group_id=2331
9) In the \gnupg subdirectory, run: upx --best *.exe
In the \winpt subdirectory, run: upx --best *.exe
10) You should have now:
\winpt (containing WinPT binaries)
\gpg (containing GnuPG binaries)
\keyring (empty directory ; will contain your keyring)
nomad_winpt.exe
That's all.
The whole thing is slightly above 1 Mb, which fits on a floppy.
Run nomad_winpt.exe
You will see AutoIt and WinPT icons in tray.
If you do not have a keyring, WinPT will prompt you to create one.
Note that once you close WinPT, the registry setting will automatically be cleared
and the AutoIt script will exit.
Note:
GnuPG settings changed from WinPT GUI will be saved to gpg.conf
WinPT settings changed from WinPT GUI will be discarded. You have to add them
to the nomad_winpt.au3 script.
Bonjour
Superbe solution. Cela marche très bien pour chiffrer un texte .txt ou .doc. Y a t'il possibilité de chiffrer directement n'importe quels types de fichiers ? Merci pour tous Elargoo |
Y a t'il possibilité de chiffrer directement n'importe quels types de fichiers ?
oui. Pour cela, il suffit de prendre uniquement gpg.exe Pour chiffrer un fichier: gpg -c fichier Pour le déchiffrer: gpg fichier |
Bonjour
Merci beaucoup pour la réponse. Je ne doit pas être très doué, je ne parviens pas à utiliser cette methode pour chiffrer un fichier. En revanche a force de bidouiller, la methode suivante semble convenir. Clic droit sur l'icone WINPT TRAY en bas à droite de l'écran. Clic sur "file manager" ouverture d'une fenêtre. Glisser déposer le fichier à crypter selection clic droit du fichier dans cette nouvelle fenêtre Encrypt. et voilà. Pour déchifrer glisser déposer le fichier à déchifrer de la même manière selectioner encrypt. Merci encore Elargoo PS: je cherche le même type de possibilité sur disque USB pour true crypt. |
Résultats pour WinPT/gpg sur une disquette ou clé USB
Résultats pour WinPT/gpg sur une disquette ou clé USB
Résultats pour WinPT/gpg sur une disquette ou clé USB
Résultats pour WinPT/gpg sur une disquette ou clé USB
Résultats pour WinPT/gpg sur une disquette ou clé USB