[j-nsp] Format of SHA1 Passwords

Chip Marshall chip at 2bithacker.net
Tue Dec 3 11:31:21 EST 2013

I'm trying to write a utility for generating JUNOS-compatible
password hashes outside of JUNOS, and I've hit a bit of a
stumbling block with JUNOS SHA-1 passwords. They don't seem to
follow the normal crypt() pattern of $format$salt$hash and I
can't seem to find the format documented anywhere.

I get things like "$sha1$19418$aoTClyGU$cix8MhZsXwG6OrwUgeHAoOA8f.AX"
where it appears to have the format, some number, what I think is
the salt, and then the hash.

Anyone know how these things are calculated?

Chip Marshall <chip at 2bithacker.net>

More information about the juniper-nsp mailing list