Horst Nogajski: .htacess ich habe keine Ahnung

Beitrag lesen

Hallo Sven,

Windows-Apache brauchen keine verschlüsselten Paßwörter. Allerdings ist davon abzuraten, Windows-Rechner als Server ins Internet zu packen.

Das hat aber nichts mit den Passwörtern zu tun. Denn wenn man will kann man die auch unter Windows verschüsseln.

Nur nicht mit crypt, sondern bei Windows standardmäßig mit md5. Wahlweise würde auch noch sha und natürlich unverschlüsselt gehen.

Hier einmal kurz die vier Varianten und die Gebrauchsanweisung vom Passwortmacher  ;)

D:\apache\bin\htpasswd.exe -mb D:\apache\conf\liebe_user sven md5
         ergibt -> sven:$apr1$7l1.....$LVn5GLyPL3tiWH93B9MB.1

D:\apache\bin\htpasswd.exe -sb D:\apache\conf\liebe_user sven sha
         ergibt -> sven:{SHA}2PRZAyDhNDqRW2OUFwZQqPNdaSY=

D:\apache\bin\htpasswd.exe -pb D:\apache\conf\liebe_user sven klartext
         ergibt -> sven:klartext

D:\apache\bin\htpasswd.exe -db D:\apache\conf\liebe_user sven crypt
      Automatically using MD5 format on Windows.
      Updating password for user sven
         ergibt -> sven:$apr1$.r1.....$62lUqs0o0DEoeUgFaP/PX1

Windows: htpasswd.exe /?
      Usage:
       htpasswd [-cmdps] passwordfile username
       htpasswd -b[cmdps] passwordfile username password

htpasswd -n[mdps] username
       htpasswd -nb[mdps] username password
       -c  Create a new file.
       -n  Don't update file; display results on stdout.
       -m  Force MD5 encryption of the password (default).
       -d  Force CRYPT encryption of the password.
       -p  Do not encrypt the password (plaintext).
       -s  Force SHA encryption of the password.
       -b  Use the password from the command line rather than prompting for it.
      On Windows, TPF and NetWare systems the '-m' flag is used by default.
      On all other systems, the '-p' flag will probably not work.

Viele Grüße,
Horst