Skip to main content

sc.base64

The Base64 Module for the computer API!


Functions

encode

sc.base64.encode( data )

Converts a string to be Base64 encoded.

Arguments:

  • data [ string ] The data to be converted.

Returns:

  • [ string ] The encoded data.

decode

sc.base64.decode( data )

Decodes a base64 string.

Arguments:

  • data [ string ] The data to be decoded.

Returns:

  • [ string ] The decoded data.