Results 1 to 6 of 6

Thread: Access to Access

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    116

    Unhappy

    Hello,

    How can I deny access to an Access database from
    outside a VB application? i.e. The database can
    only be accessed through the application.
    0101011001000010
    01101111011011100110110001101001011011100110010101110010

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Holden Beach NC
    Posts
    85
    Originally posted by VBonliner
    Hello,

    How can I deny access to an Access database from
    outside a VB application? i.e. The database can
    only be accessed through the application.
    In Access password protect the database. In code when opening the data base provide the password.

    Hunter

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    116

    Unhappy

    How can I provide the password thru VB code?
    0101011001000010
    01101111011011100110110001101001011011100110010101110010

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Although using a DB password isn't exactly secure:
    Anyway, Access97 passwords are stored in the 13 bytes from offset 0x42 in a .mdb file. Do a bitwise XOR with 0x86, 0xFB, 0xEC, 0x37, 0x5D, 0x44, 0x9C, 0xFA, 0xC6, 0x5E, 0x28, 0xE6, 0x13 to recover the plaintext. I think that if the first byte is 0x86, the password is not checked.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Junior Member
    Join Date
    Aug 2000
    Location
    Rockford, IL
    Posts
    21

    Perhaps you should to a diffent way...

    Perhaps you should look into a Decryption and Encyption function to encrypt your data.

    This will help secure whats in it.

    If you use Access97 then it is very vounterable to low level hackers even if you have a password.

    Access2000 I have yet to try but I heards a little harder to crack but has been done.

    but if you want to put a simple password on your database and still access that through Access then use this code.

    Set DB = OpenDatabase(App.Path & "\Alert.mdb", False, False, ";PWD=password")
    Set RS = DB.OpenRecordset("Errors", dbOpenDynaset)

    If you have anyquestions let me know
    [email protected]


  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Access2000 passwords are in exactly the same format. (I never knew how useful it would be, knowing that, until we got the EAS thing at school )
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width