Reputation: 11
I am trying to implement a searchable encryption in nodejs by using the encrypted index. Here is my database.
{
"_id" : 2,
"name" : "Anya",
"username" : "myName",
}
i tried this method too. but didn't work. i'm new in node and try to search with encrypted value. any one have idea about how to make to solve it.
db.collection.find({name: "encrypted value"})
Upvotes: 1
Views: 1017
Reputation: 19
MongoDB client-side field level encryption uses the encrypt-then-MAC
approach combined with either a deterministic or random initialization vector to encrypt field values. MongoDB only supports the AEAD AES-256-CBC
encryption algorithm with HMAC-SHA-512
here what I got relevant to these MAC.
https://docs.mongodb.com/manual/core/security-client-side-encryption/
Upvotes: 1