ashghost wrote:
...
The biggest problem I see is that it [gpg4usb] doesn't include robust key management. You can only import keys, you can't generate them (though I see that's on the to-do list).
...
Size: 23.6 MB uncompressed (a little big, but it is cross-platform)
...
In terms of
program size, windows users can delete the linux elements and UPX-compress the start_windows.exe and gpg.exe files, resulting in a total size about 3.5 MB uncompressed.
With regard to
key management, I can offer some help for windows users until the author of gpg4usb adds other key management functions.
Below are some short .cmd programs that should be placed in the gpg4usb application directory along with start_windows.exe. The functions are self-explanatory from the suggested names.
To create these .cmd files, just use Notepad (or other plain text editor) and copy and paste my code exactly. I have used relative directory paths, so you do not need to change any of the code.
Suggested File Name = GenKeyPair.cmd
Code:
@echo off
:: This generates a new key pair for use in gpg4usb
%~dp0\bin\gpg --homedir %~dp0\keydb --gen-key
echo.
echo Operation complete. Press any key to close . . .
echo.
pause > nul
exit
Suggested File Name=ExportKey.cmd
Code:
@echo off
:: This exports a public key from gpg4usb
echo.
set /p expkey=What is the KeyID (Name, Email or Number) of key to be exported? &::
%~dp0\bin\gpg --homedir %~dp0\keydb --armor -o "%~dp0\keydb\exportedkey.txt" --export "%expkey%"
Notepad "%~dp0\keydb\exportedkey.txt"
echo.
echo.
echo Exported key can be found in "%~dp0\keydb\exportedkey.txt".
echo.
echo Operation complete. Press any key to close . . .
echo.
pause > nul
exit
Additionally, the following two files can be used to clearsign a text file and to verify signed text in a text file.
Suggested File Name=ClearSignTextFile.cmd
Code:
@echo off
:: This clearsigns a text file with default signing key
echo.
set /p infile=What is dir:\path\filename of the text file to be signed? &::
echo.
echo.
set /p signedfile=What is dir:\path\filename of the output file with signature? &::
%~dp0\bin\gpg --homedir %~dp0\keydb -o "%signedfile%" --clearsign "%infile%"
Notepad "%signedfile%"
echo.
echo Signed file is "%signedfile%" .
echo Operation complete. Press any key to close . . .
echo.
pause > nul
exit
Suggested File Name=VerifySigInTextFile.cmd
Code:
@echo off
:: This verifies the signature of signed text in a text file
echo.
set /p sigfile=What is dir:\path\filename of the text file with signed text? &::
echo.
%~dp0\bin\gpg --homedir %~dp0\keydb -o "%signedfile%" --verify "%sigfile%"
echo.
echo.
echo Operation complete. Press any key to close . . .
echo.
pause > nul
exit
Hope this information helps somebody.
Yucca