Function
base64.urlsafe_b64encode

Signature

urlsafe_b64encode(s)

Documentation String

Encode a string using a url-safe Base64 alphabet.

s is the string to encode. The encoded string is returned. The alphabet uses - instead of + and _ instead of /.