N
Nuxt2y ago
Mathieu

How can I encrypt a string in a static Docus website ?

Hello there, I'm running a static Docus website hosted on Netlify. I'm trying to do a small form submission system that would interact with Notion API. Since they implemeted granular permissions, I don't really care about using my integration token because it will only allow for write, and no read nor update. But I would like to know about something I don't understand, since I don't really use Nuxt as a power user but just as a Content/Docus baby user : if I wanted to use a system to encrypt a string, for example if I wanted to compare a password to a RSA hashed "good password", how would I know ? I see there's a crypto-js npm package, I also see Cryptr, but actually I don't know how I could do the integration. What would be the path from the start npm install crypto-js (I say crypto-js but I don't know if it's the one to use) to the v-if="RSA.encrypt(input-password) == HashedGoodAnswer"in a Vue SFC ? Thanks a lot for your help. Also, I'm the one who asked 2 years ago, and few weeks ago again about how to do LaTeX equations in Nuxt Content, and I think answering this encryption question may help me solving my LaTeX issue, since it could help me understand how all this works ?
1 Reply
Mathieu
MathieuOP2y ago
up, anyone plz ?
Want results from more Discord servers?
Add your server