Skip to content

Instantly share code, notes, and snippets.

@offby1
Created July 5, 2015 16:16
Show Gist options
  • Select an option

  • Save offby1/c34f2aa9dff50012e00b to your computer and use it in GitHub Desktop.

Select an option

Save offby1/c34f2aa9dff50012e00b to your computer and use it in GitHub Desktop.
import base64
import hashlib
inputvalue = 'hello, Sailor'
hashedURL1 = base64.b64encode(inputvalue)
md5 = hashlib.md5()
md5.update(inputvalue)
hashedURL0 = md5.hexdigest()
print(hashedURL0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment