Password protection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Painter

    #1

    Password protection

    I need a scheme to give people password access to JavaScript quizzes that
    I have.
    I've done a lot of programming but almost no JS.

    Probably one password per person for each of five tests.

    I suspect I will be maintaining the lists but if there is a *very* easy
    routine that an end user could use it would be nice.
    It usually takes more than five visits to get this guy up on anything new.

    Any ideas where I might find such a beast?
    I've been looking but with little luck so far.


  • HikksNotAtHome

    #2
    Re: Password protection

    In article <d6ucb.157716$3 o3.11280827@bgt nsc05-news.ops.worldn et.att.net>,
    "Mike Painter" <mdotpainter@at t.net> writes:
    [color=blue]
    >I need a scheme to give people password access to JavaScript quizzes that
    >I have.
    >I've done a lot of programming but almost no JS.[/color]

    Use a server side language (PHP, ASP, Server Side Javascript, etc.) Anything
    you try to do in the browser, with regards to multiple users/passwords, will
    fail.

    Although Jim Ley showed me a page that is "password protected" that is pretty
    spiffy. I have yet to break it. But, it doesn't contain the password in the
    page, the password is a key to decrypting the page.

    If the password is in the page, then it can/will be broken, and quite easily.
    --
    Randy

    Comment

    • Mike Painter

      #3
      Re: Password protection


      "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
      news:2003092500 5031.21457.0000 0858@mb-m10.aol.com...[color=blue]
      > In article <d6ucb.157716$3 o3.11280827@bgt nsc05-news.ops.worldn et.att.net>,
      > "Mike Painter" <mdotpainter@at t.net> writes:
      >[color=green]
      > >I need a scheme to give people password access to JavaScript quizzes[/color][/color]
      that[color=blue][color=green]
      > >I have.
      > >I've done a lot of programming but almost no JS.[/color]
      >
      > Use a server side language (PHP, ASP, Server Side Javascript, etc.)[/color]
      Anything[color=blue]
      > you try to do in the browser, with regards to multiple users/passwords,[/color]
      will[color=blue]
      > fail.
      >
      > Although Jim Ley showed me a page that is "password protected" that is[/color]
      pretty[color=blue]
      > spiffy. I have yet to break it. But, it doesn't contain the password in[/color]
      the[color=blue]
      > page, the password is a key to decrypting the page.
      >
      > If the password is in the page, then it can/will be broken, and quite[/color]
      easily.

      Granted if the person is willing to work at it and has the skills and the
      password is in the page and they can see the page and the encryption is
      simple enough they can break it.

      For that type I would probably use the simplest method I've seen and use the
      name of the file as the password. Assuming they can't see what's on the
      server that's about as secure as you can get.

      99.999% of the people who will be taking these quizzes would be better off
      studying or looking the answers up in the book.



      Comment

      • Laurent Bugnion, GalaSoft

        #4
        Re: Password protection

        Hi,

        Mike Painter wrote:
        [color=blue]
        > "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
        > news:2003092500 5031.21457.0000 0858@mb-m10.aol.com...
        >[color=green]
        >>In article <d6ucb.157716$3 o3.11280827@bgt nsc05-news.ops.worldn et.att.net>,
        >>"Mike Painter" <mdotpainter@at t.net> writes:
        >>
        >>[color=darkred]
        >>>I need a scheme to give people password access to JavaScript quizzes[/color][/color]
        >
        > that
        >[color=green][color=darkred]
        >>>I have.
        >>>I've done a lot of programming but almost no JS.[/color]
        >>
        >>Use a server side language (PHP, ASP, Server Side Javascript, etc.)[/color]
        >
        > Anything
        >[color=green]
        >>you try to do in the browser, with regards to multiple users/passwords,[/color]
        >
        > will
        >[color=green]
        >>fail.
        >>
        >>Although Jim Ley showed me a page that is "password protected" that is[/color]
        >
        > pretty
        >[color=green]
        >>spiffy. I have yet to break it. But, it doesn't contain the password in[/color]
        >
        > the
        >[color=green]
        >>page, the password is a key to decrypting the page.
        >>
        >>If the password is in the page, then it can/will be broken, and quite[/color]
        >
        > easily.
        >
        > Granted if the person is willing to work at it and has the skills and the
        > password is in the page and they can see the page and the encryption is
        > simple enough they can break it.
        >
        > For that type I would probably use the simplest method I've seen and use the
        > name of the file as the password. Assuming they can't see what's on the
        > server that's about as secure as you can get.
        >
        > 99.999% of the people who will be taking these quizzes would be better off
        > studying or looking the answers up in the book.[/color]

        Then don't password protect them. If you do, you insult the intelligence
        of those who are able to find the password. Just let them be responsible
        for their own failure if they choose to look for the answers in the
        page. It's not your problem anymore.

        Anything you do on the client (even your file name = password trick) can
        be easily defeated.

        Laurent
        --
        Laurent Bugnion, GalaSoft
        Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
        Private/Malaysia: http://mypage.bluewin.ch/lbugnion
        Support children in Calcutta: http://www.calcutta-espoir.ch

        Comment

        • Jerry Park

          #5
          Re: Password protection

          Laurent Bugnion, GalaSoft wrote:[color=blue]
          > Hi,
          >
          > Mike Painter wrote:
          >[color=green]
          >> "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
          >> news:2003092500 5031.21457.0000 0858@mb-m10.aol.com...
          >>[color=darkred]
          >>> In article
          >>> <d6ucb.157716$3 o3.11280827@bgt nsc05-news.ops.worldn et.att.net>,
          >>> "Mike Painter" <mdotpainter@at t.net> writes:
          >>>
          >>>
          >>>> I need a scheme to give people password access to JavaScript quizzes[/color]
          >>
          >>
          >> that
          >>[color=darkred]
          >>>> I have.
          >>>> I've done a lot of programming but almost no JS.
          >>>
          >>>
          >>> Use a server side language (PHP, ASP, Server Side Javascript, etc.)[/color]
          >>
          >>
          >> Anything
          >>[color=darkred]
          >>> you try to do in the browser, with regards to multiple users/passwords,[/color]
          >>
          >>
          >> will
          >>[color=darkred]
          >>> fail.
          >>>
          >>> Although Jim Ley showed me a page that is "password protected" that is[/color]
          >>
          >>
          >> pretty
          >>[color=darkred]
          >>> spiffy. I have yet to break it. But, it doesn't contain the password in[/color]
          >>
          >>
          >> the
          >>[color=darkred]
          >>> page, the password is a key to decrypting the page.
          >>>
          >>> If the password is in the page, then it can/will be broken, and quite[/color]
          >>
          >>
          >> easily.
          >>
          >> Granted if the person is willing to work at it and has the skills and the
          >> password is in the page and they can see the page and the encryption is
          >> simple enough they can break it.
          >>
          >> For that type I would probably use the simplest method I've seen and
          >> use the
          >> name of the file as the password. Assuming they can't see what's on the
          >> server that's about as secure as you can get.
          >>
          >> 99.999% of the people who will be taking these quizzes would be better
          >> off
          >> studying or looking the answers up in the book.[/color]
          >
          >
          > Then don't password protect them. If you do, you insult the intelligence
          > of those who are able to find the password. Just let them be responsible
          > for their own failure if they choose to look for the answers in the
          > page. It's not your problem anymore.
          >
          > Anything you do on the client (even your file name = password trick) can
          > be easily defeated.
          >
          > Laurent[/color]
          Actually, you can use javascript to securely password protect a page.
          But the effort to maintain such a page is excessive.

          Comment

          • HikksNotAtHome

            #6
            Re: Password protection

            In article <ixGcb.24145$an .2973@bignews6. bellsouth.net>, Jerry Park
            <NoReply@No.Spa m> writes:
            [color=blue]
            >Actually, you can use javascript to securely password protect a page.
            >But the effort to maintain such a page is excessive.[/color]

            And have the password in the page? Or are you referring to something like Jim
            gave me? I can't find the link but the password was the key to the crypto. If
            the password is in the page, its trivial to defeat it though.
            --
            Randy

            Comment

            • Mike Painter

              #7
              Re: Password protection


              "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
              news:2003092519 3754.11022.0000 0999@mb-m14.aol.com...[color=blue]
              > In article <ixGcb.24145$an .2973@bignews6. bellsouth.net>, Jerry Park
              > <NoReply@No.Spa m> writes:
              >[color=green]
              > >Actually, you can use javascript to securely password protect a page.
              > >But the effort to maintain such a page is excessive.[/color]
              >
              > And have the password in the page? Or are you referring to something like[/color]
              Jim[color=blue]
              > gave me? I can't find the link but the password was the key to the crypto.[/color]
              If[color=blue]
              > the password is in the page, its trivial to defeat it though.
              > --
              > Randy[/color]

              Assume these lines are in the body of the text:
              ***********
              It may seem easy for some to find a password. However for most people the
              job can be very difficult. At some point the user will give up before
              finding it.
              This especially true if the pages include files that don't appear on the
              page.
              ***********
              What is the password? (And it's not password?)


              Comment

              • Mike Painter

                #8
                Re: Password protection


                "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> wrote in
                message news:bkv7hb$jt4 $1@rex.ip-plus.net...[color=blue]
                > Hi,
                ><snip>
                > Anything you do on the client (even your file name = password trick) can
                > be easily defeated.
                >[/color]
                How can it be easily defeated?


                Comment

                • HikksNotAtHome

                  #9
                  Re: Password protection

                  In article <QdOcb.153435$0 v4.11435861@bgt nsc04-news.ops.worldn et.att.net>,
                  "Mike Painter" <mdotpainter@at t.net> writes:
                  [color=blue]
                  >
                  >Assume these lines are in the body of the text:
                  >***********
                  >It may seem easy for some to find a password. However for most people the
                  >job can be very difficult. At some point the user will give up before
                  >finding it.
                  >This especially true if the pages include files that don't appear on the
                  >page.
                  >***********
                  >What is the password? (And it's not password?)[/color]

                  OK, let me clarify what I said, so we aren't splitting words. If the password
                  is in the code, and defined as the password, then its trivial to defeat.
                  Meaning, you can obfuscate it, but if its defined in the code as being the
                  password, so that script can compare what the user inputs to it, then its
                  trivial to defeat.

                  Can you make it hard enough that most people will give up? Sure. Can you make
                  it impossible? Not if the password is defined in the code as being the password
                  (The crypto page doesn't have it defined in the page, its used as the key to
                  the crypto).

                  If you want a secure system, do it on the server. And not even that is entirely
                  "secure" but it beats the heck out of javascript security.
                  --
                  Randy

                  Comment

                  • Laurent Bugnion, GalaSoft

                    #10
                    Re: Password protection

                    Hi,

                    Mike Painter wrote:[color=blue]
                    > "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> wrote in
                    > message news:bkv7hb$jt4 $1@rex.ip-plus.net...
                    >[color=green]
                    >>Hi,
                    >><snip>
                    >>Anything you do on the client (even your file name = password trick) can
                    >>be easily defeated.
                    >>[/color]
                    >
                    > How can it be easily defeated?[/color]

                    Some browsers allow seeing everything on your server. It's then pretty
                    easy to find all the files it contains, and to load them.

                    If you have access to the server, it's very easy to set up password
                    protected directories for your users, and this way is much safer than
                    anything you can do on the client. Check htaccess in Google for details.
                    Of course, any security scheme can be defetaed eventually, but at least
                    you won't look like a fool for doing it on the client ;-)

                    Laurent
                    --
                    Laurent Bugnion, GalaSoft
                    Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
                    Private/Malaysia: http://mypage.bluewin.ch/lbugnion
                    Support children in Calcutta: http://www.calcutta-espoir.ch

                    Comment

                    • Mike Painter

                      #11
                      Re: Password protection


                      "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> wrote in
                      message news:3f753c90_4 @news.bluewin.c h...[color=blue]
                      > Hi,
                      >
                      > Mike Painter wrote:[color=green]
                      > > "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_S PAM.ch> wrote in
                      > > message news:bkv7hb$jt4 $1@rex.ip-plus.net...
                      > >[color=darkred]
                      > >>Hi,
                      > >><snip>
                      > >>Anything you do on the client (even your file name = password trick) can
                      > >>be easily defeated.
                      > >>[/color]
                      > >
                      > > How can it be easily defeated?[/color]
                      >
                      > Some browsers allow seeing everything on your server. It's then pretty
                      > easy to find all the files it contains, and to load them.[/color]

                      No, some servers allow seeing everything. The browser can't over ride that.
                      [color=blue]
                      >
                      > If you have access to the server, it's very easy to set up password
                      > protected directories for your users, and this way is much safer than
                      > anything you can do on the client. Check htaccess in Google for details.
                      > Of course, any security scheme can be defetaed eventually, but at least
                      > you won't look like a fool for doing it on the client ;-)
                      >[/color]
                      True enough but it does not solve the problem of multiple users with
                      passwords gaining access to those protected directories.
                      ..htaccess works fine if I want *a* password.

                      My original post asked for references to a solution which might be JS, not
                      a rehash of things that don't meet the criteria.

                      The MS Access groups offer solutions, so far I've seen nothing here but
                      people saying how easy it is to break code and figure things out.

                      But when I ask how, they all fall silent. I'll look elsewhere.





                      Comment

                      Working...