Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Password Checking

Password Checking

Scheduled Pinned Locked Moved The Weird and The Wonderful
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rob Grainger
    wrote on last edited by
    #1

    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.

    B OriginalGriffO 2 Replies Last reply
    0
    • R Rob Grainger

      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.

      B Offline
      B Offline
      Brisingr Aerowing
      wrote on last edited by
      #2

      :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

      S 1 Reply Last reply
      0
      • B Brisingr Aerowing

        :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

        S Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #3

        Well, he knew that he needed a password for something, just not for what thing :laugh:

        1 Reply Last reply
        0
        • R Rob Grainger

          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.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          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

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups