From Clomosy Docs

AES (Advanced Encryption Standard) is a symmetric key encryption algorithm, meaning the same key is used both to encrypt data and decrypt the encrypted data. This ensures the secure transmission of data.

The usage of AES encryption method in Clomosy includes:

  • Encryption: The ProjectEncryptAES function is used for encrypting text. This function takes a parameter of type string.

Use of:


  • Decryption: To decrypt the encrypted text, the ProjectDecryptAES function is used. This function also takes a parameter of type string.

Use of:

Example
In the example, a text is encrypted and displayed in a message box. Then, the encrypted text is decrypted, and the decrypted version is displayed again.

var
  text: string;
  encryptedValue: string;
  decryptedValue: string;
{
  text = 'Clomosy Learn';
  encryptedValue = Clomosy.ProjectEncryptAES(text);
  ShowMessage('Encrypted Value: ' + encryptedValue);

  decryptedValue = Clomosy.ProjectDecryptAES(encryptedValue);
  ShowMessage('Decrypted Value: ' + decryptedValue);
}

See Also