I have a below scenario where I have to encrypt a JSON either as a whole or at least the values in the object before sending it as a response from the API and then I'll have to decrypt the same from the frontend.
Below is my response object
{
abc_key: 'sdlnf-2343-325sdgdssg',
cde_key: 'lkgh-3453-dtjdd-32423',
}
Came across a library called bcrypt.js
but it seems to be suitable for hashing passwords.
Could anyone help me out with this?
I really appreciate any help you can provide.