HOWTO on interfacing with gnupg/pgp?
Public <Anonymous_Account>
remailer@xganon.com
Thu Jun 21 16:38:02 2001
> 2.6.3ia-multi04, with the CAST5 algorithm, I get exactly the same error.
> When I decrypt a conventionally encrypted file with gpg I get a "bed key"
> error, although the used algorithm is recognized:
>
> vulcan:~/tmp> gpg -v nokia.htm.asc
> gpg: armor header: Version: 2.6.3ia-multi04
> gpg: CAST5 encrypted data
> gpg: decryption failed: bad key
>
> The following file is encrypted conventionally with pgp 2.6.3ia-multi04,
> with -cat, using the CAST5 algo, with password "test" (without the ""). I
> can't decrypt it with gpg. I have no problems trying to debug this myself,
> but in which piece of the gnupg code does this go wrong?
It's the selection of compression algorithm that gives you a problem.
Change that and decrypting the message becomes a piece of cake ;-)
$ echo test |
gpg -v --passphrase-fd=0 --digest-algo=md5 --compress-algo=2 nokia.htm.asc
Reading passphrase from file descriptor 0
gpg: armor header: Version: 2.6.3ia-multi04
gpg: CAST5 encrypted data
gpg: original file name='nokia.htm'
$ cat nokia.htm
<html>
<head>
<title>mobile.box.sk - your ultimate mobile/gsm guide</title>
</head>
<body>
*#0000# To view Software Version.<br>
<br>
*#746025625# [*#sim0clock#] <br>
Checks if the sim clock can be stopped. Sim clock stop is a kind of stand-by mode which will save battery time. This code doesn't work with software version 4.59.<br>
<br>
*#92702689# [*#war0anty#] takes you to a secret menu with 6 choices:<br>
<br>
1. Displays Serial Number. <br>
2. Displays the Month and Year of Manufacture (0997) <br>
3. Displays (if there) the date where the phone was purchased (MMYY) <br>
4. Displays the date of the last repairment - if found (0000) <br>
5. makes you capebel of transferring user data if you have the gear for it <br>
6. shows how many hours the phone has been on<br>
<br>
*3370# - Enhanced Full Rate Codec (EFR) activation. It will automatically restart. <br>
#3370# - Enhanced Full Rate Codec (EFR) deactivation. It will automatically restart. <br>
*4370# - Half Rate Codec activation. It will automatically restart <br>
#4370# - Half Rate Codec deactivation. It will automatically restart <br>
xx# - xx position in Phone Book <br>
<br>
Enhanced Full Rate will give you much better sound quality when you enable it. The new Enhanced Full Rate CODEC adopted by GSM uses the ASELP (AlgebraicCode Excitation Linear Prediction) compression technology. This technology allows for much great voice quality in the same number of bits as the older Full Rate CODEC. The older technology was called LPC-RPE (Linear Prediction Coding with Regular Pulse Excitation). Both operate at 13 kilobits.(but you take up more space on the network, so they can charge you more) - Talk-time is reduced with about 5% <br>
</body>
</html>