mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Truncate groupcaps_hash to 8 Base64 digits
This commit is contained in:
parent
e77473e800
commit
5193730652
1 changed files with 1 additions and 1 deletions
|
@ -411,5 +411,5 @@ function mcl_util.hash(value)
|
||||||
-- minetest.get_password_hash is quite fast, even if it uses a
|
-- minetest.get_password_hash is quite fast, even if it uses a
|
||||||
-- cryptographic hashing function (SHA-1). It is written in C++ and it
|
-- cryptographic hashing function (SHA-1). It is written in C++ and it
|
||||||
-- is probably hard to write a faster hashing function in Lua.
|
-- is probably hard to write a faster hashing function in Lua.
|
||||||
return minetest.get_password_hash("ryvnf", minetest.serialize(value))
|
return string.sub(minetest.get_password_hash("ryvnf", minetest.serialize(value)), 1, 8)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue