首先,我看到要使用CRYPT_BLOWFISH,我需要使用以$2a$开头的16个字符的盐。然而,说有些系统不支持CRYPT_BLOWFISH。这种情况有多频繁?接下来,从他们在文档上的示例中,我看到我使用crypt(),如下所示:$password = crypt('mypassword'); // let the salt be automatically generated
/* You should pass theentire results
根据我的Ubuntu12.04系统上的crypt手册页,crypt使用的是SHA-512 (因为字符串以$6$开头)。import hashlib, crypt
salt = "qwerty"
insaltvalue2 = crypt.crypt(password, insalt) #this one is correct on