thorn.utils.hmac
HMAC Message signing utilities.
-
thorn.utils.hmac.
compat_sign
(digest_method, key, message)[source]
-
thorn.utils.hmac.
get_digest
(d)[source]
-
thorn.utils.hmac.
random_secret
(length, chars=u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&()*+, -./:;<=>?@[\\]^_`{|}~')[source]
-
thorn.utils.hmac.
sign
(digest_method, key, message)[source]
-
thorn.utils.hmac.
verify
(digest, digest_method, key, message)[source]