[GH-ISSUE #2250] can not support htpasswd format #1506

Closed
opened 2026-10-15 04:19:04 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sechacking on GitHub (Aug 31, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2250

hi,

can you make support htpasswd format?

Originally created by @sechacking on GitHub (Aug 31, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2250 hi, can you make support htpasswd format?
bsakaguchi 2026-10-15 04:19:04 +07:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@jfoug commented on GitHub (Aug 31, 2016):

Here are the hashes I could find to be built with htpasswd:

jim2:$apr1$GJA34/..$MalP.BfwrdYgWBv8HKlYJ/
jim2:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
jim2:REkFemOGb1iAU
jim2:$2y$05$ViR/HoRR.8rHXxtGqhAO6uHVBAN/XP/3soRNwIZxWI4p67pLjOSNS
jim2:$2y$16$ttbQng.xFhQIrcdgUnpgY.WqMCd89ebZVsPj7v7bbuufpdx6LHZLu

All are password of password. The last one is a 'stronger' bcrypt (level 16, vs level 5).

$ echo password | ../run/john htpasswd.pw -form=md5crypt --stdin
Loaded 1 password hash (md5crypt, crypt(3) $1$ [MD5 128/128 AVX 4x3])
password         (jim2)

$ echo password | ../run/john htpasswd.pw -form=raw-sha1 --stdin
Loaded 1 password hash (Raw-SHA1 [SHA1 128/128 AVX 4x])
password         (jim2)

$ echo password | ../run/john htpasswd.pw -form=descrypt --stdin
Loaded 1 password hash (descrypt, traditional crypt(3) [DES 128/128 AVX-16])
password         (jim2)

$ echo password | ../run/john htpasswd.pw -form=bcrypt --stdin
password         (jim2)
password         (jim2)

$cat ../run/john.pot
$apr1$GJA34/..$MalP.BfwrdYgWBv8HKlYJ/:password
{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=:password
REkFemOGb1iAU:password
$2y$05$ViR/HoRR.8rHXxtGqhAO6uHVBAN/XP/3soRNwIZxWI4p67pLjOSNS:password
$2y$16$ttbQng.xFhQIrcdgUnpgY.WqMCd89ebZVsPj7v7bbuufpdx6LHZLu:password

So just what are you expecting?? john handles everything that htpasswd can build.

<!-- gh-comment-id:243813698 --> @jfoug commented on GitHub (Aug 31, 2016): Here are the hashes I could find to be built with htpasswd: jim2:$apr1$GJA34/..$MalP.BfwrdYgWBv8HKlYJ/ jim2:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g= jim2:REkFemOGb1iAU jim2:$2y$05$ViR/HoRR.8rHXxtGqhAO6uHVBAN/XP/3soRNwIZxWI4p67pLjOSNS jim2:$2y$16$ttbQng.xFhQIrcdgUnpgY.WqMCd89ebZVsPj7v7bbuufpdx6LHZLu All are password of password. The last one is a 'stronger' bcrypt (level 16, vs level 5). ``` $ echo password | ../run/john htpasswd.pw -form=md5crypt --stdin Loaded 1 password hash (md5crypt, crypt(3) $1$ [MD5 128/128 AVX 4x3]) password (jim2) $ echo password | ../run/john htpasswd.pw -form=raw-sha1 --stdin Loaded 1 password hash (Raw-SHA1 [SHA1 128/128 AVX 4x]) password (jim2) $ echo password | ../run/john htpasswd.pw -form=descrypt --stdin Loaded 1 password hash (descrypt, traditional crypt(3) [DES 128/128 AVX-16]) password (jim2) $ echo password | ../run/john htpasswd.pw -form=bcrypt --stdin password (jim2) password (jim2) $cat ../run/john.pot $apr1$GJA34/..$MalP.BfwrdYgWBv8HKlYJ/:password {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=:password REkFemOGb1iAU:password $2y$05$ViR/HoRR.8rHXxtGqhAO6uHVBAN/XP/3soRNwIZxWI4p67pLjOSNS:password $2y$16$ttbQng.xFhQIrcdgUnpgY.WqMCd89ebZVsPj7v7bbuufpdx6LHZLu:password ``` So just what are you expecting?? john handles everything that htpasswd can build.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1506
No description provided.