我試圖設置口令鹽醃上我們的網站,發現PBKDF2功能在https://defuse.ca/php-pbkdf2.htm 當我嘗試它,我得到: Fatal error: mcrypt_create_iv(): Could not gather sufficient random data in include\PBKDF2.php on line 23 我不知道如果我需要做任何事情來完成這項工作。它
我試圖用django 1.4使用不同的哈斯。我有一個散列器文件「hashers.py」我的應用「帳戶」, import hashlib
from pbkdf2 import pbkdf2
from django.contrib.auth.hashers import SHA1PasswordHasher
from django.utils.crypto import pbkdf2
c
我用光彥的實現PBKDF2的密碼散列: def pbkdf2_bin(data, salt, iterations=1000, keylen=24, hashfunc=None):
"""Returns a binary digest for the PBKDF2 hash algorithm of `data`
with the given `salt`. It iterat