htpasswd & md5 & sha1 ?

mr.GOD

Новичок
htpasswd & md5 & sha1 ?

Уважаемые , подскажите как криптуеться пароль в .htpasswd с помощью md5 & sha1 ?
 

BoFFiN

Новичок
mr.GOD
htpasswd
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.
 

mr.GOD

Новичок
:)

естественно я имел ввиду с помощью пхп функций
md5() & sha1() .
 

Макс

Старожил PHPClub
mr.GOD
если никто объяснять не захочет, посмотри код в этом классе
 
Сверху