Branch: Tag:

2019-11-06

2019-11-06 15:42:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.Password: Fixed handling of "$3$"-style hashes.

206:       case "nt":    case "3": // MD4 NT LANMANAGER (FreeBSD) -  return this::hash(passwd, scheme)[sizeof(scheme) + 2..] == hash; +  return this::hash(passwd, scheme)[sizeof(scheme) + 3..] == hash;       // cf http://www.akkadia.org/drepper/SHA-crypt.txt    case "5": // SHA-256