Description Usage Arguments Value References Examples
In contrast to RFC3548, the 62nd character (‘+’) is replaced with ‘-’, the 63rd character (‘/’) is replaced with ‘_’. Furthermore, the encoder does not fill the string with trailing ‘=’. The resulting encoded strings comply to the regular expression pattern “[A-Za-z0-9_-]” and thus are safe to use in URLs or for file names.
1 2 3 |
x |
[ |
[character
] of the same length as input x
.
Implementation based on base64 encoder/decoder in the Apache Portable Runtime (APR): https://svn.apache.org/repos/asf/apr/apr/trunk/encoding/apr_base64.c
1 2 3 4 5 | x = "plain text"
encoded = base64_urlencode(x)
decoded = base64_urldecode(encoded)
print(encoded)
print(decoded)
|
[1] "cGxhaW4gdGV4dA"
[1] "plain text"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.