AES

The AES class provides methods to extract the numerical value out of any currency representation by normalizing the input and removing any locale specific rules like symbols and use of commas.

Importing the AES class

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

Encrypt a message with the given password

1AES.encrypt("message", "password");

Decrypt a message with the given password

1AES.decrypt(AES.encrypt("message", "password"), "password");
Last updated 2 years ago
Edit Page
Share: