Namespace: Base64

GoBrain.Utils. Base64

Methods

staticGoBrain.Utils.Base64.decode(base64Str){String}

GoBrain.Core/src/utils.js, line 148

Decodes a Base64 encoded string.

Decodes a Base64 encoded string.

Name Type Description
base64Str String

The Base64 encoded string to decode.

Returns:
Type Description
String The decoded string.

staticGoBrain.Utils.Base64.decodeToByteArray(base64Str, blockSize){Uint8Array}

GoBrain.Core/src/utils.js, line 186

Decodes a Base64 encoded string to a byte array.

Decodes a Base64 encoded string to a byte array.

Name Type Description
base64Str String

The Base64 encoded string to decode.

blockSize Number optional

Block size to use.

Returns:
Type Description
Uint8Array The decoded byte array.

staticGoBrain.Utils.Base64.encode(str){String}

GoBrain.Core/src/utils.js, line 109

Base64 encodes a string.

Base64 encodes a string.

Name Type Description
str String

The string to encode.

Returns:
Type Description
String The Base64 encoded string.