Skip to content

encodeBase64 JavaScriptDart

Base64-encode the given string.

Parameters

  • str::string

Returns

string

Examples

javascript
encodeBase64('this is test'); // Returns 'dGhpcyBpcyB0ZXN0'

Released under the MIT License