Re: kryptering til .htaccess med bdes

From: Hroi Sigurdsson (none@hroi--asdf.dk.lh.bsd-dk.dk)
Date: Tue 05 Jun 2001 - 23:27:21 CEST


Date: Tue, 05 Jun 2001 23:27:21 +0200
From: Hroi Sigurdsson <none@hroi--asdf.dk.lh.bsd-dk.dk>
To: bsd-dk@bsd-dk.dk
Subject: Re: kryptering til .htaccess med bdes

Christian Dalager wrote:

> Kan du give mig et hurtigt eksempel? For jeg kan ikke helt gennemskue
> princippet
> bash$ crypt -s hest

Det er ikke det samme. PHK mente crypt(3) libc-funktionen.

> giver bare et linjeskift og så skal man lave C-c for at komme ud igen. Uden
> resultat.

Brug htpasswd fra Apache distributionen.
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.
 -d Force CRYPT encryption of the password (default).
 -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.

-- 
Hroi Sigurdsson
Fried ice cream is a reality! -- George Clinton



This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:24:09 CET