zero knowledge encryption with keycloak

Viewed 38

Here is my structure:

  • A database where I store sensitive information.
  • A frontend app where the user interacts.
  • A backend to receive interactions and manage data accordingly
  • Keycloak for auth

Architecture

I have been reading a little bit, and I have concluded that storing sensitive information in the database could pose security risks.

A solution could be to use zero knowledge encryption:

  1. user authenticates with password
  2. frontend uses the password to encrypt data sent to the backend
  3. backend stores encrypted data

The problem is that I have no access to the password since Keycloak stores it internally. Do you guys know if there is a way of implementing a solution like this? or a better alternative? I am new to cryptography.

0 Answers
Related