© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
2 replies
NeoFahrenheit

Using vault for generating users encryption keys

I am creating a notes app and I really like to protect user personal data. In my app, I am using the user password to generate a decryption key that will be used to decrypt his or her data. This way, not even me can peek into their personal, encrypted information. I store the user encrypted password using flutter_secure_storage for offline use. The downside? If user forget his password, he is screwed.

Can I use vault to generate random encryption keys for each user that register? Maybe adding a trigger when a new user is created. I could also story this key encrypted for offline use. Now the user can redefine his password anytime, but can me or anyone that works with me peek into that information and use for malicious porpuses?

What do you guys think is the best approach?

Thanks.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Encryption Keys in vault missing. (whole tab)
SupabaseSSupabase / help-and-questions
8mo ago
Using Supabase Vault for Storing User Secrets and API Keys
SupabaseSSupabase / help-and-questions
7mo ago
Using Vault with logs
SupabaseSSupabase / help-and-questions
5mo ago
Let users access API using custom api keys
SupabaseSSupabase / help-and-questions
13mo ago