有什么办法可以重现这个红宝石功能:
def Password.hash(password,salt)
Digest::SHA512.hexdigest("#{password}:#{salt}")
end
在 php.ini 中。
干杯
Something like this should do it, using the php hash() function
function passwordhash($password, $salt)
{
return hash('sha512', "{$password}:{$salt}");
}