Toggle menu

base64codec

Used to convert UTF-8 strings to and from base64.

Executed

Server-side

Details

var base64codec = require('base64codec');

MethodDescription
Base64.encodeConverts a string to base64
Base64.decodeConverts base64 to a string

Example

function( params, credentials ) {
    var base64codec = require('base64codec');
    var base64 = base64codec.Base64.decode('aGVsbG8=');
    return base64;
}

{
    "jsonrpc": "2.0",
    "id": 17,
    "result": "hello"
}

Last modified on 10 March 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon