Question[Help]Login System

Posts 16–20 of 20 · Page 2 of 2
Okay thanks, okay well I got it now but like Blubb1337 I should encrypt it, How would I encrypt the passwords then have it decrypt when it checks. . .

I don't think I need to get a paid web sever, since I am still releasing basic things, for now while I'm learning the basics I see no point to pay for one when I can just use a slow crappy one


How could I make a local search program, like you type in keywords and it pulls that page up. . .and how big to you think its gonna be, with about. . .5,000 different possibility lol.

(search>found page/Not found>Click which one>takes to the page)

And/OR

(search>It picks first possible one)
Quote Originally Posted by Web-Designer View Post
Okay thanks, okay well I got it now but like Blubb1337 I should encrypt it, How would I encrypt the passwords then have it decrypt when it checks. . .
You don't need to decrypt it when it checks, you just need to encrypt the user supplied password and see if it matches the encrypted password in your txtfile.
oh and that doesn't sound hard at all lol

Okay thanks, I'll look into it.
Quote Originally Posted by Web-Designer View Post
oh and that doesn't sound hard at all lol

Okay thanks, I'll look into it.
It's not haha, Blubb even posted a snippet that would do the trick.

Provided you've encrypted your password to MD5 when adding them to your textfile initially, all you need to do is use Blubb's MD5StringHash function to convert txtPassword.text to MD5, and then compare it the encrypted password in the txt file.

Also, use Erinador's method to store your users/password, split is much more efficient for this, although you'll have to use a basic array
As Jason said, MD5 cannot be decrypted, therefore you just do the following(logic ^.^):

SeperateWords(1) = The md5 hash of the password in your .txt file.
txtpassword = Textbox to enter the password in order to login

[php]If MD5StringHash(txtpassword.text) = SeperateWords(1) Then
...
end if[/php]

[php]
If Encrypted(txtpassword.text) = AlreadyEncrypted(SeperateWords(1)) Then
...
end if[/php]

Very easy logic.
Posts 16–20 of 20 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us