I have created login service in both magento and node js. In magento if customer is registered with password, the password is encrypted with md5 salt key value. If i am using crypto node js module to decrypt the magento password it is throwing error.
Error: Unknown cipher
at Error (native)
at new Decipher (crypto.js:210:16)
at Object.Decipher (crypto.js:207:12)
at D:\Workspace\mobileappoutes\users.js:30:24
at Layer.handle [as handle_request] (D:\Workspace\mobileapp
ode_modules\express\libouter\layer.js:95:5)
at trim_prefix (D:\Workspace\mobileapp
ode_modules\express\libouter\index.js:312:13)
at D:\Workspace\mobileapp
ode_modules\express\libouter\index.js:280:7
at param (D:\Workspace\mobileapp
ode_modules\express\libouter\index.js:349:14)
Only if i decrypt the magento password i can verify my login password matches and i can proceed. I tried to encrypt my node js login password but the password doesnot matches..