Ideally, 14 characters? Or, whatever works.
Asked
Active
Viewed 291 times
-4
-
2Yes, it is called a **hash** function ;) – Felix Kling Dec 20 '10 at 10:17
-
12Seriously, @TIMEX, 737 questions in under 14 months of registration? That's almost two a day on average - much higher at times! And many of them are oh-so-basic questions which you could find answers for with a trivial search. Frankly, you would make more efficient use of your time and the time of others if you tried searching the web and StackOverflow before posting. – Chris Morgan Dec 20 '10 at 10:35
-
possible duplicate of [Built in python hash() function](http://stackoverflow.com/questions/793761/built-in-python-hash-function) – SilentGhost Dec 20 '10 at 11:02
2 Answers
5
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.

user225312
- 126,773
- 69
- 172
- 181
1
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.

Douglas Leeder
- 52,368
- 9
- 94
- 137