[j-nsp] Format of SHA1 Passwords

Chris Morrow morrowc at ops-netman.net
Tue Dec 3 11:34:12 EST 2013



On 12/03/2013 11:31 AM, Chip Marshall wrote:
> 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?
> 

we do this calculation.... I believe your intended format is:
  $1$salt$hash

or that seems to be what our code does.


More information about the juniper-nsp mailing list