Skip to content

Instantly share code, notes, and snippets.

@tpott
Created January 1, 2016 16:29
Show Gist options
  • Save tpott/59522f409dae9ffae019 to your computer and use it in GitHub Desktop.
Save tpott/59522f409dae9ffae019 to your computer and use it in GitHub Desktop.
whats the diff
import os
import base64
def helper():
while True:
s = os.urandom(16)
a = base64.b64encode(s)
b = base64.urlsafe_b64encode(s)
if a != b:
print (a, b)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment