Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Mark Felder
On Tue, Dec 3, 2013, at 11:21, Giuliano Cardozo Medalha wrote: > set system password format sha-1 > Hmm, it does appear Juniper went ahead and added sha1 support as well. Neat. # set system login password format sha1 ___ juniper-nsp mailing list junipe

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Chip Marshall
On 2013-12-03, Paul Goyette sent: > Looks like the output is identical to what would be generated by > the *BSD pwhash(1) utility. > > # pwhash -S 24680 stuff > $sha1$23933$/WgTkHoe$25rdwdZ95cfgY/Tl6li2/LRIbuVT > # > > pwhash(1) in turn calls the crypt(3) library function afte

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Paul Goyette
Re: [j-nsp] Format of SHA1 Passwords On 12/03/2013 11:46 AM, Chip Marshall wrote: > On 2013-12-03, Chris Morrow sent: >>> I get things like "$sha1$19418$aoTClyGU$cix8MhZsXwG6OrwUgeHAoOA8f.AX" >>> where it appears to have the format, some number, what I think is >&g

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Giuliano Cardozo Medalha
set system password format sha-1 Sent from my iPhone > On 03/12/2013, at 15:16, Mark Felder wrote: > > > >> On Tue, Dec 3, 2013, at 10:46, Chip Marshall wrote: >> On 2013-12-03, Chris Morrow sent: I get things like "$sha1$19418$aoTClyGU$cix8MhZsXwG6OrwUgeHAoOA8f.AX" where it appear

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Mark Felder
On Tue, Dec 3, 2013, at 10:46, Chip Marshall wrote: > On 2013-12-03, Chris Morrow sent: > > > 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

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Chris Morrow
On 12/03/2013 11:46 AM, Chip Marshall wrote: > On 2013-12-03, Chris Morrow sent: >>> 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 a

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Chip Marshall
On 2013-12-03, Chris Morrow sent: > > 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

[j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Chip Marshall
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 g

Re: [j-nsp] Format of SHA1 Passwords

2013-12-03 Thread Chris Morrow
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