Provides simple Base64 encoding and decoding.
var base64 = require('base64')
import base64 from 'base64'
The following sections describe the available methods within this module. Each section includes a table that lists the parameters for that method, as well as the parameter's type and description.
Encode a String as Base64
Kind: Static property of base64
Returns: String
Access: Public
Parameter | Type | Description |
---|---|---|
str | String | The string to be encoded |
Decode a String from Base64
Kind: Static property of base64
Returns: String
Access: Public
Parameter | Type | Description |
---|---|---|
str | String | The string to be decoded |
Copyright 2024 Samsung All rights reserved