logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2 and htaccess
Author
kaneton



Joined: 27 May 2006
Posts: 2

PostPosted: Sat 27 May '06 4:23    Post subject: Apache 2 and htaccess Reply with quote

Hello,
do you know if it's possible to learn to the windows version of apache to read htpasswd file encrypted by an unix computer (DES == crypt).

By default, it's not. It's possible with lounge version ?

Thanks a lot.
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Sat 27 May '06 11:56    Post subject: Re: Apache 2 and htaccess Reply with quote

kaneton wrote:
Hello,
do you know if it's possible to learn to the windows version of apache to read htpasswd file encrypted by an unix computer (DES == crypt).

By default, it's not. It's possible with lounge version ?

Thanks a lot.


No this is not posible... they don't even work cross unix <-> linux <-> mac <-> freebsd (in some cases)

1) Apache check if the OS provides crypt() or not windows doesn't so it defaults to plain text... so if you have a crypt hash in there... windows treats it as plain text!
2) crypt() isn't the same on all platforms so some incompatibilites may show when using the same file on diferent flavours of linux or mac,...

Now for the solution:
Use MD5 or SHA1 for encryption, they work on all platforms so they shouldn't give a compatibility problem.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sat 27 May '06 15:53    Post subject: Reply with quote

md5 is only a hash. use SHA1
Back to top
kaneton



Joined: 27 May 2006
Posts: 2

PostPosted: Sat 27 May '06 19:34    Post subject: Reply with quote

Quote:
md5 is only a hash. use SHA1


yes but the database uses DES.

Quote:
No this is not posible... they don't even work cross unix <-> linux <-> mac <-> freebsd (in some cases)

1) Apache check if the OS provides crypt() or not windows doesn't so it defaults to plain text... so if you have a crypt hash in there... windows treats it as plain text!
2) crypt() isn't the same on all platforms so some incompatibilites may show when using the same file on diferent flavours of linux or mac,...


ok. For now i use php function crypt, under windows, and they are no problem. Your point 2 is strange, i'had never heard that.
Back to top


Reply to topic   Topic: Apache 2 and htaccess View previous topic :: View next topic
Post new topic   Forum Index -> Apache