Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Authentication with /etc/shadow

by fluffyvoidwarrior (Monk)
on Feb 26, 2011 at 19:21 UTC ( #890333=note: print w/replies, xml ) Need Help??


in reply to Re: Authentication with /etc/shadow
in thread Authentication with /etc/shadow

Yes, thanks.

I chopped the first 2 chars off to use as the salt but, as you said, the hash actually started $6$ with a $ delimiter at the 8th char.

so this must be the MD5 format

The start of the hash is "$6$ENtbbZ8/$" so the $salt would be "ENtbbZ8/" ? ...
and then my little code snippet might work?

Will check out the crypt manpage Thank you.

Replies are listed 'Best First'.
Re^3: Authentication with /etc/shadow
by hsinclai (Deacon) on Feb 27, 2011 at 00:22 UTC
    so this must be the MD5 format

    I believe that would be SHA512, the passwords start with $6$ -- Crypt::Password can handle it, I think.


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890333]
help
Chatterbox?
[1nickt]: marto all good after the hurricane?
erix .o.O ( I reckon yet again some pieces broke off UK are added to NL downstream... )
erix joining the EU after all

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-10-17 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (225 votes). Check out past polls.

    Notices?