In python, I use the following code to create a hash for user passwords:
self.password = hmac.new(security_key, raw_password, sha1).hexdigest()
Now I would like to store this value in the database. What size should be my database column? This is similar to the digest_size property, but does not know which object or class has such a property. sha1 does not have.
source
share