Re: Status of Format Documentation
"Frank Pilhofer" <[email protected]>
| Newsgroups | gmane.comp.security.passwordsafe.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 18 Jul 2005 02:23:40 -0400, Wolfgang Keller <[email protected]> wrote: > > I will shortly publish my results in producing a _Java backend library > to realize PasswordSafe files_ (read and write). In order to avoid > compatibility errors, I'ld like to ask you for your support by naming me > a complete set (or as complete as possible) of documents which detail > the actual file format, including the latest changes. I'ld be grateful > for a special reference to the somewhat unclear question whether text > format has effecively changed to utf-8. > Hello Wolfgang, some time ago, I posted some comments on the formatV2.txt file. At the time, it seemed as if we had agreement on the changes, yet they don't seem to be reflected in the current formatV2.txt file in the Password Safe CVS repository. The changes were: - The encoding of textual data depends on the setting of the "IsUTF8" preference (boolean preference number 24). If the IsUTF8 preference is true, textual data is stored in UTF-8 format. If the IsUTF8 preference is false, textual data is stored using the current locale. - Timestamps are stored as 32 bit, little endian, unsigned integers, representing the number of seconds since Midnight, January 1, 1970, GMT. (This is equivalent to the time_t type on Windows and POSIX. On the Macintosh, the value needs to be adjusted by the constant value 2082844800 to account for the different epoch of its time_t type.) Timestamps are stored in GMT. - Numerical data is stored in little endian byte order. See https://sourceforge.net/mailarchive/forum.php?thread_id=6139864&forum_id=7535 for the discussion. Frank -- Frank Pilhofer, [email protected] ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click