KMS Demo with Spring Cloud GCP

Encrypt and Decrypt text

Using the form below, you can encrypt/decrypt text using Google Cloud Kms. In the controller code, the KmsTemplate is being used to do these operations.

Encrypt Text

This will encrypt text using an Encryption Key ID. You will receive an error if you try to use an encryption key ID that does not already exist.

  1. Key ID:
  2. Text:

Decrypt Text

This will decrypt encrypted text an Encryption Key ID. You will receive an error if you try to use an encryption key ID that does not exist or and different key the encrypted the original text.

  1. Key ID:
  2. Encrypted Text:

Key Management Service Operation: [[${message}]]

You can also view your cryptographic keys in the Cryptographic keys UI in Google Cloud Console .