Skip to content

Instantly share code, notes, and snippets.

@dallasmarlow
Created June 1, 2015 16:29
Show Gist options
  • Save dallasmarlow/b42283ea9e4554f716ce to your computer and use it in GitHub Desktop.
Save dallasmarlow/b42283ea9e4554f716ce to your computer and use it in GitHub Desktop.
varnish secret auth
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