Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个代码片段,我需要从 python 移植到 nodejs。
from passlib.hash import md5_crypt result = md5_crypt.hash('myword', salt='mysalt') print(result) //prints $1$mysalt$AOH5zWnW1AGXm3dquFWXI.
当使用相同的输入时,我似乎在 npm 上找不到任何可以在节点中给我相同结果的库。有什么想法可以在 javascript/node 中实现吗?