Base64

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

Importing the Base64 class

1import { Base64 } from "@ardenthq/sdk-cryptography";

Encode a string to Base64

1Base64.encode("Hello World");

Decode a Base64 string

1Base64.decode("SGVsbG8gV29ybGQ=");

Validate a Base64 string

1Base64.validate("SGVsbG8gV29ybGQ=");
Last updated 1 year ago
Edit Page
Share: