mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-11 04:15:12 +02:00
change python b64encode to urlsafe_b64encode
parent
f08cb7e7e2
commit
ba80c657d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue