php - Hash value lengths -
when referring length of hash value such sha1 or md5 in php, right interpret size of hash in memory rather number of characters nowadays in literal?
it's minimum number of bits required store hash unambiguously.
>>> len(hashlib.md5('foo').digest()) * 8 128 >>> len(hashlib.sha1('foo').digest()) * 8 160 >>> len(hashlib.sha512('foo').digest()) * 8 512
php encryption
No comments:
Post a Comment