contactsunny / MongoDBSpringBootEncryptionDecryptionPOC

This is a simple Spring Boot POC in which we try to understand how to use MongoDB cascading features provided by Spring Boot, to encrypt data before saving to MongoDB and decrypting it after fetching from MongoDB.

Home Page:https://blog.contactsunny.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB Encryption and Decryption with Spring Boot

This is a simple Spring Boot POC in which we try to understand how to use MongoDB cascading features provided by Spring Boot, to encrypt data before saving to MongoDB and decrypting it after fetching from MongoDB.

Configuration

Change MongoDB connection configuration in the resources/application.properties file. The property is spring.data.mongodb.uri. An example:

spring.data.mongodb.uri=mongodb://localhost:27017/test

About

This is a simple Spring Boot POC in which we try to understand how to use MongoDB cascading features provided by Spring Boot, to encrypt data before saving to MongoDB and decrypting it after fetching from MongoDB.

https://blog.contactsunny.com

License:GNU General Public License v3.0


Languages

Language:Java 100.0%