Encrypt organizations secrets
I'm using an external API, where I'm going to create a 1:1 relationship between the organizations in my database and the organizations created in the API. For each request in the external API, I need a secret key per organization for making requests.
I need to store in my database the secret key for each organization, but I need to encrypt it.
I was thinking of using Cryptr (npm), but reading the Convex documentation, I see that not all npm packages are accepted by convex.
Any recommendations would be greatly appreciated.
4 Replies
you can use standard webcrypto apis
MDN Web Docs
SubtleCrypto: encrypt() method - Web APIs | MDN
The encrypt() method of the SubtleCrypto interface encrypts data.
like AES
I'll take a look at that, thank you @jamwt!