password protection

He has: 9 posts

Joined: Dec 2006

Hello, i am trying a new code that compares an entered password to a .txt file saved in a differnt location.

http://www.stuff.pissedandhappy.co.uk/password

I have been told that i need some javascript that will check the two passwords, can someone help me as to which javascript i need? (javascript was never my strong point)

The actual password protected part of the page is not important at all but i would like to encrypt the txt file later, and use this password more often.

Just a bit of fun really but i would really appreciate your help

cheers Peter

From the master of everything... Maybe

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

He has: 9 posts

Joined: Dec 2006

conrad;212219 wrote: Hacked

bamberclamp breakdown

Why don't you use the htaccess to restrict the site?

Also, might be worth you looking at SHA1 encryption for the code you can find the link below...

http://pajhome.org.uk/crypt/md5/index.html

I know it isnt hard to hack, but once the text file has been encrypted then it will be alot harder. also i will encrypt the html in the page as to not show the link.

From the master of everything... Maybe

He has: 9 posts

Joined: Dec 2006

also, i have used the good old .ht access to password protect before i am currently using it here :admin1.pissedandhappy.co.uk but i find it un user freindly.

Also if i do one of these scripts then i can do a mailer to returna forggoten password

From the master of everything... Maybe

He has: 9 posts

Joined: Dec 2006

ok, ive had another plan, i am wanting a password box to compare a username and password to a standard windows database.

I Know that will need all of te nessacary .asp files, but then i would need to know the rest of the codes.

I am quite new to this as i am used to using password scripts that i have found on the internet, it has got to be said that trying to make your own is alot more fun Laughing out loud

From the master of everything... Maybe

He has: 9 posts

Joined: Dec 2006

unforunatly my server does not support asp.

i think i am going to give up with this little plan Sad

He has: 9 posts

Joined: Dec 2006

yes my host does support cgi, i currently use serveral that they allow you to make using a builder. The only reason i am trying to do this is to creat a more attractive log in for pissedandhappy.

BTW i created some little scripts (trying to learn javascript) in another post, basically they ae number gens and password gens. Tell me if you can find a use for them:

here is the password gen:
http://www.stuff.pissedandhappy.co.uk/password-gen.txt

and the number gen:
http://www.stuff.pissedandhappy.co.uk/numbergen.html

Just press refresh to get a new number.

Please tell me if you can find any use what so ever, so far my plan has been to use it for a user database, generating the numbers, it will then cross reference them.

From the master of everything... Maybe

He has: 9 posts

Joined: Dec 2006

i will do, i was thinking about combining the two scripts to creat half number half key, it would be one hell of a generator. Still though i dont think that there would be a use.

Can you not think of anything usefull for it at all?

From the master of everything... Maybe

He has: 9 posts

Joined: Dec 2006

sorry, not that technicaly minded

Busy's picture

He has: 6,151 posts

Joined: May 2001

The downside to javascript is it can esily be turned off.
So you need to A/ fail it on js being off no matter what, B/ use server side to compare (you may need to change hosts if your host doesnt support asp/php), C/ use some other method.

While javascript can be handle for a lot of things, passwords/login etc should never just use javascript for the security aspect of it.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.