Skip to content

Latest commit

 

History

History
executable file
·
11 lines (7 loc) · 502 Bytes

File metadata and controls

executable file
·
11 lines (7 loc) · 502 Bytes

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