Skip to content

javabites-gituser/springboot-aws-ale-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

springboot-aws-ale-encryption

A sample app to encrypt/decrypt data before storing into database using AWS kms. AWS KMS uses envelop encryption.

Step 1 : Generating KMS keys

Generate data key using below command. Refer AWS documentation for more details.

aws kms generate-data-key \
    --key-id alias/MasterKeyAlias \
    --key-spec AES_256

Step 2 : Encryption/Decryption

  • Store the data in secure place, recommended to use AWS Secrets Manager. You can not decrypt the data if data key once lost.
  • AESEncryptor class is responsible encrypting and decrypting the data using data-key

References

https://docs.aws.amazon.com/cli/latest/reference/kms/generate-data-key.html https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#enveloping

About

A sample app to encrypt/decrypt data before storing into database using aws kms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages