Skip to content

Instantly share code, notes, and snippets.

@rainyman2012
Created May 28, 2022 06:04
Show Gist options
  • Save rainyman2012/ef971bbd6ce65ce4fc55518211c580d7 to your computer and use it in GitHub Desktop.
Save rainyman2012/ef971bbd6ce65ce4fc55518211c580d7 to your computer and use it in GitHub Desktop.
from django.utils.crypto import salted_hmac
salted_hmac('arbitrary salt', 'hello', secret="arbitrary secret key", algorithm="md5").digest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment