Encrypt and Decrypt String using Node JS and Mongo DB

preview_player
Показать описание
Encrypt and Decrypt String using Node JS and Mongo DB

Download:

Tags:
#nodejs
#mongodb
#encrypt
#decrypt
#crypto
#express
Рекомендации по теме
Комментарии
Автор

I have situation that I need to encrypt multiple data fields in the collection.
1. Should I use 1 iv for all data fields for 1 document/record?
2. Can you please suggest, how to update the document?

Regards

AbdulKhaliq-llxl
Автор

I run this code through Visual studio code. However, I don't know why I always face up with error: Uncaught Error Error: listen EADDRINUSE: address already in use :::3000.
- I try to find and kill the process but nothing changes
- MongoDB is still running
- I access localhost:3000 and get that nofitication "Cannot GET /encrypt"
Can you help me? I just used MongoDB a day ago. Hope to get a help. Thank you

linhnguyen
Автор

Thank you! ... but it's necessary to save the IV ? If I know that I will always work with 32?

sayroxs
Автор

Can I encrypt multiple fields and save them in the same data table? how?

hoangminh
Автор

How is this secure when you have to send a decrypted message to the server?

jsl