Home | Platform SDK

AES

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

Importing the AES class

import { AES } from "@arkecosystem/platform-sdk-crypto";

Encrypt a message with the given password

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

Decrypt a message with the given password

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

2020 © ARK.io | All rights reserved | An ARK.io Product