MCPcopy
hub / github.com/liangliangyy/DjangoBlog / get_sha256

Function get_sha256

djangoblog/utils.py:30–33  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

28
29
30def get_sha256(value):
31 key = settings.SECRET_KEY.encode('utf-8')
32 msg = str(value).encode('utf-8')
33 return hmac.new(key, msg, hashlib.sha256).hexdigest()
34
35
36def cache_decorator(expiration=3 * 60):

Callers 10

test_imageMethod · 0.90
fileuploadFunction · 0.90
handlerMethod · 0.90
emailconfirmFunction · 0.90
form_validMethod · 0.90
form_validMethod · 0.90
account_resultFunction · 0.90
test_utilsMethod · 0.85

Calls

no outgoing calls

Tested by 4

test_imageMethod · 0.72
test_utilsMethod · 0.68