Prerequisites
- An Encrypt/Decrypt key
- The Member role to follow the UI steps, or the Cryptographic Operator role to follow the API steps (see Who can use a key)
Encrypt data
- Infisical UI
- API
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
- Infisical UI
- API
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).