Skip to main content
To encrypt data, send it to Infisical with an Encrypt/Decrypt key, and Infisical returns the ciphertext. To read the data again, send the ciphertext back with the same key. Infisical doesn’t store your data or the ciphertext.

Prerequisites

Encrypt data

1
In your KMS project, go to Overview, select the options menu on the key’s row, then select Encrypt Data.
2
Enter your data in Data (Plaintext). If your data is already Base64 encoded, turn on Data is Base64 encoded.
3
Select Encrypt, then copy the ciphertext from Encrypted Data (Ciphertext).

Decrypt data

1
In your KMS project, go to Overview, select the options menu on the row of the key that encrypted the data, then select Decrypt Data.
2
Paste the ciphertext into Encrypted Data (ciphertext). If the data you encrypted was plain text, turn on Decode Base64, so Infisical shows the text instead of its Base64 encoding.
3
Select Decrypt, then copy your data from Decrypted Data (plaintext).
If you rotated the key after you encrypted the data, Infisical still decrypts it with the key version that encrypted it.