duanao6704 2015-12-02 12:00
浏览 22

md5加密节点js和magento不匹配..

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..

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用