Not related to next, rather a feature I need in my app.
I building an app for a client, they have some very private/confidential data of their users, which they need encrypted before storing in the db, so only the an authorised user can see it and no one else. Need to know the right way to handle this,
- Since passwords are hashed I cannot use it as a encryption key since the password is only entered on the login event,
- I could technically store the plain password in the session, but seems very insecure, and a hack
- The app also has OAuth, which means I cannot rely on password as the encryption key (#2), because there wont be a password when a said user logins with google.
Need some assistance