This is a discussion on "[SOLVED] Encrypted Password" within the Classic ASP section. This forum, and the thread "[SOLVED] Encrypted Password are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Encrypted Password
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Encrypted Password
I don't know if this is done through server side scripting (ASP/PHP) or maybe Javascript, but since this forum (PHP) is so popular, I posted it here to get some fast feedback
Ok, I have downloaded an ASP Forum from Web Wiz Guide and I went behind the forum code to see how they coded some "thing". It came to my attention to see how they manage to do the Encrypted Password. Situation: When we successfully register to the system (Username & Password), and went to the database to see the password field, all I can see is some numbers and alphabets combination. My password is: monie, but in the database it displays this: BC2BFC83DBD77018D12B980BE82933332B99977A This is really a secure way of storing a password! Even the Admin guy of the forum doesn't know the user password! So my typical simple direct question is, How to do that? Thanks in advance. Cheers...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
||||
|
||||
|
Re: Encrypted Password
That "Hash" it.
Basically hashing is a one-way encryption method.. The most popular are MD5 SHA1 and SHA2.. They take a string and encrypt it into a uniform length..... Most scripting languages include an implementation of these algorithms... MySQL has it as a password function
It will not be retrievable....
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Encrypted Password
Thanks Rakuli.
That means we need to Encrypt the password before saving them to the database, right? What about the login page, will the password field recognize the Encrypted password? Or do we need to Decrypt them? Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#4
|
||||
|
||||
|
Re: Encrypted Password
You can never actually decrypt them, it is one way only.
When you are checking passwords, you are comparing hashes rather than passwords. You has the password first and the check it against the database value. in mysql this would be
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Encrypted Password
OK, let me search for the ASP Hash Algorithm first
EDIT: Found it, using MD5. I will look into it tonight. Thanks Rakuli! I'll get back to you ASAP
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Jan 2nd, 2008 at 08:04. |
|
#6
|
|||
|
|||
|
Re: Encrypted Password
Ok, I manage to do it using MD5. What you need to do is download the MD5.asp file and include then on top of your page (verify page and register form page)
Cheers... P/S: Could you move this thread to ASP? Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#7
|
||||
|
||||
|
Re: Encrypted Password
ASP has hardly any built in functions!
You'd probably have to download like 200 files to get the functions for a forum.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#8
|
|||
|
|||
|
Re: Encrypted Password
As a matter of fact, ASP do have some built in function!Hai Alex. Just want to ask you
Do you mean when using MD5 in PHP, you just use the md5(textHere)? No other file needed? Include? Cool..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#9
|
||||
|
||||
|
Re: Encrypted Password
Yes you can do that, among a few other encryption functions.
Thanks for those links though!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Encrypted Password
Cool...
In asp you need to download one asp file, named md5.asp (few hundred lines of code) just to use the MD5 Algorithm!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#11
|
||||
|
||||
|
Re: Encrypted Password
Quote:
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#12
|
|||
|
|||
|
Re: Encrypted Password
This encrypted password cannot be reversed engineered, aren't they?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#13
|
||||
|
||||
|
Re: Encrypted Password
Md5 is one way yes. It cannot be reversed.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#14
|
|||
|
|||
|
Re: Encrypted Password
Nice!
Thanks Alex! Thanks Rakuli! Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forgot password and Change password PHP script | Chono | PHP Forum | 4 | May 16th, 2008 09:13 |
| [SOLVED] Spry password confirmation widget in DW CS3 | grandadbob | Scripts and Online Services | 5 | Nov 30th, 2007 18:34 |
| [SOLVED] Connection string for password protected databases | alexgeek | Classic ASP | 6 | Oct 31st, 2007 15:59 |
| need help with password | VanHype | JavaScript Forum | 2 | May 24th, 2007 12:05 |
| [SOLVED] password protection | Anonymous User | Web Page Design | 2 | Feb 7th, 2005 18:05 |