Base64

The Base64 class provides methods to encode, decode, and validate base64 strings.

Importing the Base64 class

import { Base64 } from "@payvo/sdk-crypto";

Encode a string to Base64

Base64.encode("Hello World");

Decode a Base64 string

Base64.decode("SGVsbG8gV29ybGQ=");

Validate a Base64 string

Base64.validate("SGVsbG8gV29ybGQ=");
2021 © ARK.io | All Rights Reserved
An ARK.io Product