Created
June 1, 2015 16:29
-
-
Save dallasmarlow/b42283ea9e4554f716ce to your computer and use it in GitHub Desktop.
varnish secret auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
challenge = 'xxx' | |
secret = 'xxx' + "\n" | |
print hashlib.sha256(challenge + "\n" + secret + challenge + "\n").hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment