Password hashing using Python produces odd results on Solaris 10 & 11 -


using answer a serverfault submission generated password hashes /etc/shadow, result on windows (cygwin) or mac:

mistral.local:~(16)+>- python -c 'import crypt; print crypt.crypt("test","$6$randomsalt")' $6asqojrqb1i2 mistral.local:~(17)+>- 

is different on solaris 10 & 11:

pkearns@solaris11:~/tmp$ python -c 'import crypt; print crypt.crypt("test","$6$randomsalt")' $6$randomsalt$gzcciaoqm7ivjdvpx3t4hr23j7wdqjneaucycyvjemobzhax9bx8y2pul.he2mhbsrcgtjee9klihbq1wf8pa1 pkearns@solaris11:~/tmp$ 

can explain that?

crypt function make hash consistent system.

i'm not sure mac , windows, on linux system it's modified des, solaris it's plugable algorithms, sha-256 or sha-512 recommended use.

if need make password hash software - you'd better use hashlib.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -