4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Password Encryption Script
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jan 15, 2003 8:09 pm (21 years, 3 months ago) Reply with QuoteBack to Top

I have completely recoded the .htpasswd Encryption Tool, available at http://www.4webhelp.net/us/password.php, as the old one was coded in Perl, which meant we couldn't integrate it with the site's design.

Please let me know if you find any bugs, or have any comments/suggestions.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Thu Jan 16, 2003 6:19 pm (21 years, 3 months ago) Reply with QuoteBack to Top

ahh...now that's much better Very Happy

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Thu Jan 16, 2003 9:48 pm (21 years, 3 months ago) Reply with QuoteBack to Top

Any chance of seeing the source code to find out how you do that?
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Fri Jan 17, 2003 7:05 am (21 years, 3 months ago) Reply with QuoteBack to Top

Actually the "core" encryption code was given to me by Adam.

Code:
function get_encrypt_pw ($password) {
    mt_srand( (double)microtime() * 1000000);
    $salt = mt_rand (100000000, 999999999);
    return crypt($password,$salt);
}


The rest is just layout, error catching, etc...

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Fri Jan 17, 2003 6:15 pm (21 years, 3 months ago) Reply with QuoteBack to Top

yeah, and I can't remember who gave it to me...so if whoever wrote it ever reads this, thanks Very Happy

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
jayant
Team Member



Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India

PostPosted: Fri Jan 17, 2003 7:03 pm (21 years, 3 months ago) Reply with QuoteBack to Top

i guess everyone knows about crypt. just using a random salt Smile

________________________________
Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test
OfflineView User's ProfileFind all posts by jayantSend Personal MessageVisit Poster's WebsiteYahoo MessengerMSN Messenger
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.212729 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme