Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old August 26th, 2004, 01:00 PM
Papy Papy is offline
New Member
 
Join Date: Aug 2004
Posts: 6
how to encrypt passwords for .htpasswd

Hi,

I wanna ask that anyone knows that how can i automatocally generate encrypted passwords to put in .htpasswd files.???

Actually i have to create these files on the fly through php code ....jst like if an admin clicks on the link(a link to suspend user)then automatically the code creates a .htaccess file in that particular use 's directory and also write its contents...and then it creates an .htpasswd file and puts the username and password now this password is to be taken from database then it is to be encrypted then write in .htpasswd....

Now the files are generated automatically through code the problem arises that how to encrypt the password automatically without any kind of user interaction....

Can anyone helpme plzzzzzzzzzzzzzz....???????

i ll be greatly thankful to you.....

Thanx

Last edited by Papy; August 26th, 2004 at 01:29 PM.
Reply With Quote
  #2  
Old August 26th, 2004, 03:56 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,042
Blog Entries: 1
Here is one script that does it
http://www.zend.com/zend/tut/authent....php#Heading10
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
Reply

Bookmarks

Topic Tools

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 09:42 PM.

[ RSS ]