in reply to understand crypt
Hence feeding a crypted value as salt into crypt is eqivalent to using the original salt.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
|
|---|