[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mdbtools-dev
Subject:    Re: [mdb-dev] file.c
From:       Carl Seutter <cgseutter () worldnet ! att ! net>
Date:       2000-03-28 23:31:59
[Download RAW message or body]

forgot to say in function mdb_open

Carl Seutter wrote:

> 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];
>
> _______________________________________________
> mdbtools-dev mailing list
> mdbtools-dev@lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/mdbtools-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic