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. Yet another "Treasure"

Yet another "Treasure"

Scheduled Pinned Locked Moved The Weird and The Wonderful
10 Posts 8 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

    I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":

    Public Function CheckPassword() As Boolean
    CheckPassword = False
    If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
    CheckPassword = True
    End If
    End Function

    I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.

    "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

    N B M P 4 Replies Last reply
    0
    • R Rob Grainger

      I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":

      Public Function CheckPassword() As Boolean
      CheckPassword = False
      If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
      CheckPassword = True
      End If
      End Function

      I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.

      "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

      N Offline
      N Offline
      Nicholas Marty
      wrote on last edited by
      #2

      Can I make a guess? The password was "Test"? :laugh:

      T 1 Reply Last reply
      0
      • N Nicholas Marty

        Can I make a guess? The password was "Test"? :laugh:

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        or "Pass"?

        thatraja

        Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute

        B 1 Reply Last reply
        0
        • T thatraja

          or "Pass"?

          thatraja

          Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute

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

          Or "Dumb" Short for Dumbass Programmer.

          <voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>

          T R 2 Replies Last reply
          0
          • B Brisingr Aerowing

            Or "Dumb" Short for Dumbass Programmer.

            <voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>

            T Offline
            T Offline
            thatraja
            wrote on last edited by
            #5

            Mine's short for password. I have seen many people used admin/pass as login details for programs(testing).

            thatraja

            Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute

            1 Reply Last reply
            0
            • R Rob Grainger

              I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":

              Public Function CheckPassword() As Boolean
              CheckPassword = False
              If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
              CheckPassword = True
              End If
              End Function

              I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.

              "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

              B Offline
              B Offline
              BillW33
              wrote on last edited by
              #6

              Yeah, that looks like top-notch security, after all, once the code is compiled there is no way anyone could see what is in an exe file. ;) :rolleyes:

              Just because the code works, it doesn't mean that it is good code.

              1 Reply Last reply
              0
              • B Brisingr Aerowing

                Or "Dumb" Short for Dumbass Programmer.

                <voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #7

                Gets my vote - but not the one.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                Richard DeemingR 1 Reply Last reply
                0
                • R Rob Grainger

                  I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":

                  Public Function CheckPassword() As Boolean
                  CheckPassword = False
                  If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
                  CheckPassword = True
                  End If
                  End Function

                  I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.

                  "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                  M Offline
                  M Offline
                  mikepwilson
                  wrote on last edited by
                  #8

                  WOW That's... yeah. That's impressive.

                  1 Reply Last reply
                  0
                  • R Rob Grainger

                    I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":

                    Public Function CheckPassword() As Boolean
                    CheckPassword = False
                    If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
                    CheckPassword = True
                    End If
                    End Function

                    I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.

                    "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                    P Online
                    P Online
                    PIEBALDconsult
                    wrote on last edited by
                    #9

                    Last night, I wanted to test my (database-agnostic) data access tool against an Access database. The one I tried was for a little app I wrote many years ago which I knew was password-protected, I had to look in the code to remind myself of what the password was -- very handy, that. :-D

                    This space intentionally left blank.

                    1 Reply Last reply
                    0
                    • R Rob Grainger

                      Gets my vote - but not the one.

                      "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                      Richard DeemingR Offline
                      Richard DeemingR Offline
                      Richard Deeming
                      wrote on last edited by
                      #10

                      Is it "elephant", or is that just what you shouted when you found this code? :rolleyes:


                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                      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