使用来自serverfault 提交的答案,我为 生成了密码哈希/etc/shadow
,但是在 Windows (Cygwin) 或 Mac 上的结果:
mistral.local:~(16)+>- python -c 'import crypt; print crypt.crypt("test","$6$randomsalt")'
$6asQOJRqB1i2
mistral.local:~(17)+>-
与 Solaris 10 和 11 上的非常不同:
pkearns@solaris11:~/tmp$ python -c 'import crypt; print crypt.crypt("test","$6$randomsalt")'
$6$randomsalt$gZCCiaoqM7ivJDVPx3T4hr23J7WDQjneAucycYvJeMoBZHAx9bx8y2pUL.hE2MhbSRcgTjEE9klIhBq1WF8Pa1
pkearns@solaris11:~/tmp$
谁能解释一下?