From: Carl S. <cgs...@wo...> - 2000-03-28 23:24:23
|
All, The question was raised about the database password. While the password is not needed to access the content of the file, for completeness it would be nice. Therefore, if the following code was added to libmdb/file.c the database password would then be a part of the mdb structure: int key[] = {0x86, 0xfb, 0xec, 0x37, 0x5d, 0x44, 0x9c, 0xfa, 0xc6, 0x5e, 0x28, 0xe6, 0x13, 0xb6}; int j,pos; /* get the db password located at 0x42 bytes into the file */ for (pos=0;pos<14;pos++) { j = mdb_get_int32(mdb,0x42+pos); j ^= key[pos]; if ( j != 0) mdb->db_passwrd[pos] = j; else mdb->db_passwrd[pos] = '\0'; } Also, the following line would need to be added to the MdbHandle structure: char db_passwrd[14]; |