How to decode base64 url in python?

前端 未结 9 1464
一个人的身影
一个人的身影 2020-12-28 15:24

For Facebook fbml Apps Facebook is sending in a signed_request parameter explained here:

http://developers.facebook.com/docs/authentication/canvas

They have

9条回答
  •  一向
    一向 (楼主)
    2020-12-28 15:37

    try

    s = 'iEPX-SQWIR3p67lj_0zigSWTKHg'
    base64.urlsafe_b64decode(s + '=' * (4 - len(s) % 4))
    

    as it is written here

提交回复
热议问题