使用 PHP 进行 Ruby 密码 SHA512 哈希复制
有什么方法可以重现这个 ruby 函数:
def Password.hash(password,salt)
Digest::SHA512.hexdigest("#{password}:#{salt}")
end
In php.ini
干杯
is there any way I can reproduce this ruby function:
def Password.hash(password,salt)
Digest::SHA512.hexdigest("#{password}:#{salt}")
end
In php.
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的事情应该做到这一点,使用 php hash() 函数
Something like this should do it, using the php hash() function