method

urlsafe_encode64

Importance_1
urlsafe_encode64(bin, padding: true) public

Returns the Base64-encoded version of bin. This method complies with “Base 64 Encoding with URL and Filename Safe Alphabet” in RFC 4648. The alphabet uses ‘-’ instead of ‘+’ and ‘_’ instead of ‘/’. Note that the result can still contain ‘=’. You can remove the padding by setting padding as false.

Show source
Register or log in to add new notes.