From ba80c657d25f8eb8c721157c7be0900c87adda87 Mon Sep 17 00:00:00 2001 From: Kyle Mahan Date: Sat, 14 Nov 2015 11:16:39 -0800 Subject: [PATCH] change python b64encode to urlsafe_b64encode --- URL-signing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/URL-signing.md b/URL-signing.md index 7908a45..86ae025 100644 --- a/URL-signing.md +++ b/URL-signing.md @@ -88,5 +88,5 @@ import base64 key = 'secret key' data = 'https://octodex.github.com/images/codercat.jpg' -print base64.b64encode(hmac.new(key, msg=data, digestmod=hashlib.sha256).digest()) +print base64.urlsafe_b64encode(hmac.new(key, msg=data, digestmod=hashlib.sha256).digest()) ``` \ No newline at end of file