Skip to main content
Version: 3.1.0

Encrypt Data (AES)

Encrypt Data (AES) function encrypts data using the AES-256 CBC algorithm. This function is intended to be used to encrypt small amounts of sensitive data such as private keys.

This function requires the following inputs:

  • 1 The data to be encrypted.
  • 2 The key used to encrypt the data.
  • 3 The initial vector used with the key to encrypt the data.

The function returns the following:

  • 4 A boolean value indicating whether the encryption was successful or not.
  • 5 An error message if encryption fails.
  • 6 The encrypted data.
danger

This function is specifically designed to encrypt private keys and is not suitable for encrypting large amounts of data.

AES Encrypt Data