Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABob6iq-DvboA-+=YPqiGVoi7G+J7M1-Jv=W3u9XF+ALQDq6FA@mail.gmail.com>
Date: Tue, 12 Mar 2013 03:12:37 +0100
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Work needed before Jumbo-8

2013/3/11 Lukas Odzioba <lukas.odzioba@...il.com>:
> There is rfc4880 but it is too general.

I found this usefull: http://www.pgpdump.net/ combined with rfc4880
was good enough to implement what we need - and it works now.

Sometimes encoded file may contain additional info about user (packet
type 13), it looks like that:

Old: User ID Packet(tag 13)(47 bytes)
        User ID - Random User (Just for test) <random@...dom.com>

We have got user name, comment and an email. When gpg file contains
multiple keys it can have multiple identities.
Currently gpg2john formats output that way:
	printf("%s:$gpg$*%d*%d*%d*", filename, key.m_algorithm,
key.m_datalen, key.bits());
In my opinion we should add an email too.


P.S.
You can paste this to pgpdump site to see how it looks like after decoding:

-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)

lQO+BFE8pKgBCACvNtb3qWT0DJfFl5ZiNjyjcBVfMdFLEODwUP+KsoRqlyRfTGzu
177CNzCzNJVDM2lLVmqOzS6YH5TF0g+M6+Anp3xgzzRdWcOsnH66msz39plrx1id
VXUfCE6tkp07chGKDu4dQkVzi/qrImj0VrPfrKWytRNVmDs6rU986Ng5qW5BlLXf
mbk2Dc9LGrqPEwAtRU9wL+tRLlO7VL68Zoyqc5dJ2xqnePagx61UM1/j4VsLy+ZU
R35UlX8uhTh26phTeqKvjYQ8s7zG4D9sZFPiuA9c63BA6bC17vFMSU/VUU5CIAWt
eKdzFsWr51Yg8sYWTTO8JOhuNNCJhFzRwfwvABEBAAH+AwMCV6gQN7dQ5V9gMeGW
rEMv2YseexrJ+5fga4B+ZyporCXQeK1AeX++QHfnN2fLe8Zoy/9flH+Nk2w32Kb2
8R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oXCsvp
+Y13XPbRgUz73RbwBQA+SuWJCZM=
=hYA3
-----END PGP PRIVATE KEY BLOCK-----

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.