Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: understand crypt

by holli (Abbot)
on May 29, 2019 at 22:51 UTC ( [id://11100706]=note: print w/replies, xml ) Need Help??


in reply to understand crypt

As LanX says, just to clarify:
D:\>perl -e "print crypt('foo', 'bar');" ba4TuD1iozTxw # note the hash starts with +ba D:\>perl -e "print crypt('foo', 'ba');" # same as above ba4TuD1iozTxw D:\>perl -e "print crypt('foo', 'b4r');" # and this one starts with b +4 b4aMdyw.oyhyI D:\>perl -e "print crypt('foo', 'b4');" # and this one starts with b +4 b4aMdyw.oyhyI
Hence feeding a crypted value as salt into crypt is eqivalent to using the original salt.


holli

You can lead your users to water, but alas, you cannot drown them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100706]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-18 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found