Decode a Base64 encoded string.
| Parameters: | encoded – bytes or text Base64 encoded string to be decoded |
|---|---|
| Returns: | decoded bytes string (bytes) |
Use decode_as_text() to get the decoded string as text.
Decode a Base64 encoded string.
Decode the Base64 string and then decode the result from encoding (UTF-8 by default).
| Parameters: | encoded – bytes or text Base64 encoded string to be decoded |
|---|---|
| Returns: | decoded text string (bytes) |
Use decode_as_bytes() to get the decoded string as bytes.
Encode a string using Base64.
If s is a text string, first encode it to encoding (UTF-8 by default).
| Parameters: |
|
|---|---|
| Returns: | Base64 encoded byte string (bytes) |
Use encode_as_text() to get the Base64 encoded string as text.
Encode a string using Base64.
If s is a text string, first encode it to encoding (UTF-8 by default).
| Parameters: |
|
|---|---|
| Returns: | Base64 encoded text string (Unicode) |
Use encode_as_bytes() to get the Base64 encoded string as bytes.