Last updated
Was this helpful?
Last updated
Was this helpful?
To encrypt or decrypt data, create an AES cipher instance using a specific key available as a certificate in the vault. This ensures that your encryption is secure and tied to your predetermined security protocols. The ascent.crypto.aes()
function facilitates the setup of this encrypted communication.
Create an AES cipher instance
Returns an instance of the AES Cipher
---
Returns the encrypted data
Return the decrupted data
cipher
string
The AES Key (These are certificate names available in Vault)
input
any
the data to encrypt
input
any
the data to decrypt
Encryption and Decryption methods for Ascent