Password Checking
-
From the legacy VB6 app being ported...
Private Sub cmdGateway_Click()
If UCase("" & InputBox("Input password")) <> "DIFFERENT" Then
MsgBox ("Incorrect password")
Exit Sub
Else
MsgBox ("Password accepted")
End If' There's a comment here, but that's it.
End Sub
The real password was not as above, but in every other sense this is representative. The same password is used for many "sensitive" commands through the app. In this case though, the button simply checks the password and does nothing else. I'm off for some mind bleach (whiskey).
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
From the legacy VB6 app being ported...
Private Sub cmdGateway_Click()
If UCase("" & InputBox("Input password")) <> "DIFFERENT" Then
MsgBox ("Incorrect password")
Exit Sub
Else
MsgBox ("Password accepted")
End If' There's a comment here, but that's it.
End Sub
The real password was not as above, but in every other sense this is representative. The same password is used for many "sensitive" commands through the app. In this case though, the button simply checks the password and does nothing else. I'm off for some mind bleach (whiskey).
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
:doh: The original 'Script Kiddie' (Programmer is too professional a term for this guy) obviously didn't know anything about security.
Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor
-
:doh: The original 'Script Kiddie' (Programmer is too professional a term for this guy) obviously didn't know anything about security.
Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor
-
From the legacy VB6 app being ported...
Private Sub cmdGateway_Click()
If UCase("" & InputBox("Input password")) <> "DIFFERENT" Then
MsgBox ("Incorrect password")
Exit Sub
Else
MsgBox ("Password accepted")
End If' There's a comment here, but that's it.
End Sub
The real password was not as above, but in every other sense this is representative. The same password is used for many "sensitive" commands through the app. In this case though, the button simply checks the password and does nothing else. I'm off for some mind bleach (whiskey).
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
Whats the problem? It's completely secure provided you ship a copy of VS and the source to each user so they can set their own... :laugh:
Never underestimate the power of stupid things in large numbers --- Serious Sam