Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this questionIdeally, 14 characters? Or, whatever works.
hashlib
This module implements a common interface to many different secure hash and message digest algorithms. Included are the FIPS secure hash algorithms SHA1, SHA224, SHA256, SHA384, and SHA512 as well as RSA’s MD5 algorithm.
14 hex digits is 56 bits.
14 base64 digits is 84 bits.
md5 is 128 bits, and sha1 is 160, so you could use a truncation of those - both can be generated by hashlib, along with other more recent sha2 hashes.
Which hash is appropriate depends on what the purpose of the hash is.
精彩评论