VB icon

access 97 password recovery

Email
Submitted on: 1/3/2015 7:24:00 PM
By: Tom Pickles (from psc cd)  
Level: Not Given
User Rating: By 41 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 1482
 
     Forgot your access 97 password? Never fear this function will hack the access 97 local file password
 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :access 97 password recovery
'**************************************
Original code translated direct from c snippet by Casper Ridley
From the c code at http://www.nmrc.org/
Turned into this nifty function by me =)
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: access 97 password recovery
' Description:Forgot your access 97 password?
Never fear this function will
hack the access 97 local file
password
' By: Tom Pickles (from psc cd)
'
' Inputs:an access 97 file with local password set
'
' Returns:the password
'
' Assumes:I hope this code will end the commercial password recoverers
'**************************************

Function AccessPassword(Byval Filename As string) as string
Dim MaxSize, NextChar, MyChar, secretpos,TempPwd 
Dim secret(13) 
secret(0) = (&H86) 
secret(1) = (&HFB) 
secret(2) = (&HEC) 
secret(3) = (&H37) 
secret(4) = (&H5D) 
secret(5) = (&H44) 
secret(6) = (&H9C) 
secret(7) = (&HFA) 
secret(8) = (&HC6) 
secret(9) = (&H5E) 
secret(10) = (&H28) 
secret(11) = (&HE6) 
secret(12) = (&H13) 
secretpos = 0 
Open Filename For Input As #1' Open file for input. 
For NextChar = 67 To 79 Step 1 'Read in Encrypted Password 
 Seek #1, NextChar' Set position. 
 MyChar = Input(1, #1)' Read character. 
 TempPwd = TempPwd & Chr(Asc(MyChar) Xor secret(secretpos)) 'Decrypt using Xor 
 secretpos = secretpos + 1'increment pointer 
Next NextChar 
Close #1' Close file. 
AccessPassword = TempPwd
End Function


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.