Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-26-2002, 04:07 AM   PM User | #1
richard_r
New Coder

 
Join Date: Jun 2002
Location: FL
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
richard_r is an unknown quantity at this point
Question Encrypted Passwords and ...

I am curious. I have seen this done before but here comes the questions part...

I have two input boxes. I have them set next to eachother on the same line. I would like to know if that, when a user enters a desired password into the left box, that what they type can be encrypted and placed into the password box on the right

EXP

pass encrypted pass
| richard | | ************** |

If what I am asking is too complicated for me to understand..

pass button encrypted pass
| richard | | Encrypte? | | ************** |

richard is the pass that the user entered..
button properties would look like ..

<input type=button value=Encrypte? onClick=enpass()>

If anybody could create a function called enpass that would encrpte letters for random settings.. I would also like to know if that for the encryption, each letter that is entered could be set to only be 2 encrypted variables long..

ie text = richard encrypted = **************

I hope somebody understands what I am getting at..


Richard
__________________
Younger is better, I think. Sometimes.
richard_r is offline   Reply With Quote
Old 06-26-2002, 04:54 AM   PM User | #2
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
http://www.dynamicdrive.com/dynamicindex9/password.htm

Any help?
x_goose_x is offline   Reply With Quote
Old 06-26-2002, 10:19 PM   PM User | #3
richard_r
New Coder

 
Join Date: Jun 2002
Location: FL
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
richard_r is an unknown quantity at this point
Internet Explorer Continue

Quote:
Originally posted by x_goose_x
Any help?
Actually, yes. I would the script to encrypt the password only, and send the user (on submit of the correct password) to a page other than the page (password).htm, .html

You understand?


1 Multiple usernames and passwords
2 Encrypted Passwords only

3 OnSubmit of correct username's password page loads at my I specify, and not the password . htm, or html

Any othersites would be appreciated
__________________
Younger is better, I think. Sometimes.
richard_r is offline   Reply With Quote
Old 06-26-2002, 10:47 PM   PM User | #4
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
Do you want the page filename encrypted at all? or have it in plain text in the html document. Take note that this "Encryption" is not really encryption, just getting the code for each character. In other words anyone who knows the slightest javascript can decode it. Want it anyways? If you want something that's actually secure you'll need server-side.
x_goose_x is offline   Reply With Quote
Old 06-26-2002, 11:36 PM   PM User | #5
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
What goose said is true... this is insanely easy using server-side scripting, and very likely impossible to truly do "secure" using javascript.
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 06-27-2002, 04:22 AM   PM User | #6
richard_r
New Coder

 
Join Date: Jun 2002
Location: FL
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
richard_r is an unknown quantity at this point
Internet Explorer Thank You

I understand what you are saying but what I am using the password stuff is for a website that I am signed up with, and I am in a guild of the sort, and I wanted to make a website to help the guild's members, but not anybody who knows the page name..

let's say that the login name was member and the password was the page name, then all the user had to do was know the page name and he could get to that page, and then the password page would be useless..

for the people that were to use this scripting that I am asking for, the people do not know JS because the site that we are all signed up with will not allow us to use it on their sites..

anyways.. I know that it is basically impossible for me to use JS and have real security, but I do not want that, I would like a script that has a username ,and password (of course) that only I could specify, and that the password is not the page name..

JS wizzes would have no need to want to see the page unless they were just interested in knowing if they could get throught the password scripting, which I beleive is unethical..

but, thanks for all of your help.. If any of you spark up some ideas, don't hesitate to reply..

Thanks again




Richard
__________________
Younger is better, I think. Sometimes.
richard_r is offline   Reply With Quote
Old 06-27-2002, 05:32 AM   PM User | #7
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
Here's something I was messing around with a while ago, give it a try. You might like it.
Attached Files
File Type: zip jslogin.zip (2.8 KB, 173 views)
x_goose_x is offline   Reply With Quote
Old 11-19-2002, 01:59 AM   PM User | #8
Ricky158
Regular Coder

 
Join Date: Aug 2002
Location: New York
Posts: 152
Thanks: 12
Thanked 0 Times in 0 Posts
Ricky158 is an unknown quantity at this point
Question

i was just browsing the threads with the search feature here for a script i need, and i stumbled upon this thread. and this post sparked my attention

Quote:
Originally posted by whammy
What goose said is true... this is insanely easy using server-side scripting, and very likely impossible to truly do "secure" using javascript.
i'm in the process of making a password gate, and it's so easy to find out the passwords and the destination pages, by simply doing right-click and then clicking "View Source". and there my script is... passwords and all. so i can relate to this "secure" JS stuff...

but what i really am posting about is doing a server-side password gate. i have absolutely no experience with server-side. and i searched for something like this in the forums, and either laziness kicked in, or i couldnt find it in the first few threads that came up. anyway, if someone could direct me to an appropriate thread, or post something helpful, that'll be nice.

and, just a little question while we're on the topic of passwords... how do i get *'s to show up whenever someone types in the password field? like the pro's do.


thanks
Ricky158 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:42 PM.


Advertisement
Log in to turn off these ads.