.htpasswd 파일에 암호 쌍은 내 .htpasswd는: 나는 WAMP 서버 윈도우 OS에 설치 한
username:encryptedpassword
john:gugyjfy6786hgfhfh
처럼 보이지만 문제는 메이크업에 암호가 손으로 수 결코 암호화되어 있으므로 나는 텍스트/일반 형식을 만들 수 있습니다
.htpasswd 파일에 암호 쌍은 내 .htpasswd는: 나는 WAMP 서버 윈도우 OS에 설치 한
username:encryptedpassword
john:gugyjfy6786hgfhfh
처럼 보이지만 문제는 메이크업에 암호가 손으로 수 결코 암호화되어 있으므로 나는 텍스트/일반 형식을 만들 수 있습니다
단계 웹 사이트에서 암호화 된 비밀번호를 생성 된 암호화 된 비밀번호 생성기
2 단계 - 사본 1 이동
3 단계 만들 도메인에서 루트 폴더에 .htpasswd 파일을
4 단계 - 쓰기 사용자 이름 여기 : encypted 암호 쌍
/*에 대한 예 - 존 : 여기에 암호화 된 비밀번호를 붙여 콜론 (후) john : djfj223dv98vufhhy */
Apache는이를위한 명령 줄 도구를 제공합니다. bin
디렉토리의 htpasswd
파일을 검색하십시오. --help
매개 변수를 전달하면 당신에게 제공 : 내가 이해에서
Usage: htpasswd [-cimBdpsDv] [-C cost] passwordfile username htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password htpasswd -n[imBdps] [-C cost] username htpasswd -nb[mBdps] [-C cost] username password -c Create a new file. -n Don't update file; display results on stdout. -b Use the password from the command line rather than prompting for it. -i Read password from stdin without verification (for script usage). -m Force MD5 encryption of the password (default). -B Force bcrypt encryption of the password (very secure). -C Set the computing time used for the bcrypt algorithm (higher is more secure but slower, default: 5, valid: 4 to 31). -d Force CRYPT encryption of the password (8 chars max, insecure). -s Force SHA encryption of the password (insecure). -p Do not encrypt the password (plaintext, insecure). -D Delete the specified user. -v Verify password for the specified user. On other systems than Windows and NetWare the '-p' flag will probably not work. The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
, 당신은 다음과 같이 명령을 실행해야 할 것 :
위의 명령 끝에서 Enter 키를 누릅니다htpasswd -bp john
, 그것은 htpasswd
파일에 텍스트로 저장 될 암호를 입력하라고 요청합니다.
가능한 [사용자 이름 만들기 방법 : Windows OS에 설치된 wamp 서버의 .htpasswd 파일에 암호 쌍] (http://stackoverflow.com/questions/24630517/how-to-makeup-usernamepassword-pair-in -htpasswd-file-on-wamp-server-installed) –