|
From: Jochen H. <Hoe...@In...> - 2005-06-03 09:33:28
|
On Thursday 02 June 2005 21:42, you wrote: > "Jochen Hoenicke" <Hoe...@In...> writes: >=20 > > On Thursday 02 June 2005 17:05, Ian Soboroff wrote: > >> I type in my password, and it validates (because if I have a=20 > >> typo it tells me that the password is wrong), but it crashes in > >> "MemoryMgr.c, Line:3645, NULL handle". I have to pin-reset at this > >> point. > > > > The error message doesn't really help :( >=20 > That would be PalmOS. I assume that some data corruption is causing > the decrypt routine to run off the end of the record into pointer lala > land. You can try upgrading to keyring-2.0-pre4. I'm using it for some time without problems. It's upgrade procedure is more careful when reading records, so it may be better in recovering the records. Unfortunately there is no way back to keyring-1.2.3 then. > > http://gnukeyring.sf.net/keyring-recover/ >=20 > Reading the contents of the jarfile at the above URL, it looks like > your just working at the Palm record level. Perhaps your Java app > could be extended to decrypt the data given the password? If so it > could probably give me more informative error messages than Keyring > can. There are already some working java programs on the conduits page. Alternatively, you can check out keyring-link from the cvs repository, see: https://sourceforge.net/cvs/?group_id=3D306 The modulename is keyring-link The directory contains the C-code but there is a java directory with some=20 code to read and decrypt the pdb files. The java code uses JCE (Java Cryptographic Environment). You need to write your own code to open the database and extracts its contents though. Use it like this: KeyringLibrary library =3D new net.sf.gnukeyring.decoder.PDBKeyringLibrar= y(); library.setFilename(new File("Keys-Gtkr.pdb")); library.unlock("<secret>"); Iterator i =3D libraries.getEntries().iterator(); while (i.hasNext()) { KeyringEntry entry =3D (KeyringEntry) i.next(); System.err.println(entry.getName()); System.out.println(entry.getField("Account")); System.out.println(entry.getField("Password")); System.out.println(entry.getField("Notes")); System.out.println(entry.getField("Changed")); } Regards, Jochen =2D-=20 Jochen Hoenicke, University of Oldenburg, 26111 Oldenburg, Germany Email: hoe...@in... Tel: +49 441 798 3124 |