Closed amitistyping closed 3 years ago
Also, I was getting invalid key error earlier when using fieldEncryption.decrypt - so I had to change my key length to 32 characters as was suggested somewhere on StackOverFlow.
Hi @lazzyn ,
You need to make sure that messageObj.messageData.receiver
is actually the encrypted value. Can you print out that field before calling the function to decrypt?
Finally note that if the encrypted field is an object the data is put under __enc_fieldname_d
(replace fieldName with the actual fieldname).
Closing now.
Steps to Reproduce:
However, when I used find queries with Mongoose, I get decrypted data just fine.