Encrypt/Decrypt - ASP .NET to NodeJS

Hi,
I have an ASP application where I am storing some informaiton in the DB by encrypting with a password. I now need to re-do the application in NodeJS but encryption/decryption is failing in the new project.

I tested the encrypt method in both ASP & NodeJS and found that both work differently.
On encrypting a value 123 with password 456, .NET returns 1ZW7FT9UpUPX0EagmwJFUMs2R3xp/gbOcmfRJqW7F0c= while NodeJS returns LrATaioPsEmHMJ9YwMWj6Q==.W+UH4MBifL/1+G5gh82IpQ==.

This basically means I cannot decrypt any of the encrypted values in the DB in the new project.
What to do here? Please help.

Community Page
Last updated: