Encodes given bytes to Base64 text.
Arguments
Arguments | |
---|---|
data |
The input to be encoded. |
padding |
Specifies whether padding characters should be used to align the output to a multiple of 4 bytes (default: |
Returns
The encoded Base64 output, as a string.