JavaScript实现SHA256_CRYPT

发布于 2025-01-25 10:05:17 字数 483 浏览 3 评论 0 原文

我希望创建/使用我可以在其中指定盐和密码并在 $ 5 $ {salt} $ {checksum} 格式中接收盐。但是,我已经看到的所有JavaScript实现都返回了64bytes的输出(例如what https://www.symbionts.de/tools/hash/hash/sha256-hash/sha256-hash-hash-salt-generator.html.html noreferrer“>此网站返回)。

是否有JavaScript实现返回 $ 5 $ {salt} $ {checkSum} 格式?还是至少可以转换为这种格式的方式?

I am looking to create/use a javascript implementation of passlib.hash.sha256_crypt where I can specify a salt and password and receive a hash that is in the $5${salt}${checksum} format. However all of the javascript implementations I have seen return the output in 64bytes (like what this site returns).

Is there a javascript implementation that returns the $5${salt}${checksum} format? Or at least a way I can convert to this format?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揪着可爱 2025-02-01 10:05:17

您可以尝试将Python直接转换为JS。不过,Gurentee工作的工作取决于转换器的质量。

  1. 复制Python的模块:
from passlib.hash import sha256_crypt
print sha256_crypt.__file__
  1. 将Python的模块转换为JS,

您可以使用在线免费资源。

我认为他们使用numpy,因此挑战可能是找到可以处理numpy的转换器。

祝您项目好运!

You can try to convert the python directly to JS. Not gurentee to work though, it depends on convertor's quality.

  1. Copy python's module:
from passlib.hash import sha256_crypt
print sha256_crypt.__file__
  1. Convert python's module to JS

You can use this site, there are lots of free resources online.

I assume they use numpy, so the challenge might be finding a convertor that can handle numpy.

Good luck with your project!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文