Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
30
def
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
36
def
cache_decorator(expiration=3 * 60):
Callers
10
test_image
Method · 0.90
fileupload
Function · 0.90
handler
Method · 0.90
test_weibo_authoriz_login_without_email
Method · 0.90
emailconfirm
Function · 0.90
form_valid
Method · 0.90
form_valid
Method · 0.90
account_result
Function · 0.90
test_validate_register
Method · 0.85
test_utils
Method · 0.85
Calls
no outgoing calls
Tested by
4
test_image
Method · 0.72
test_weibo_authoriz_login_without_email
Method · 0.72
test_validate_register
Method · 0.68
test_utils
Method · 0.68