diff options
author | Rob Blanckaert <basicer@basicer.com> | 2017-10-30 00:18:18 -0700 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | 4d9bf75d3ab6a181b3113c3231d2e41245795a60 (patch) | |
tree | 2905b213ab235a646080fd18c0a457827ec4263f /doc | |
parent | 416c4535c7e302191903c2a5c174de4f41a62e1c (diff) | |
download | minetest-4d9bf75d3ab6a181b3113c3231d2e41245795a60.tar.gz minetest-4d9bf75d3ab6a181b3113c3231d2e41245795a60.tar.bz2 minetest-4d9bf75d3ab6a181b3113c3231d2e41245795a60.zip |
Add sha1 to lua utils. (#6563)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.md | 3 | ||||
-rw-r--r-- | doc/lua_api.txt | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index ab72bbccf..8ef3bfb2e 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -628,6 +628,9 @@ Minetest namespace reference version entirely. To check for the presence of engine features, test whether the functions exported by the wanted features exist. For example: `if minetest.nodeupdate then ... end`. +* `minetest.sha1(data, [raw])`: returns the sha1 hash of data + * `data`: string of data to hash + * `raw`: return raw bytes instead of hex digits, default: false ### Logging * `minetest.debug(...)` diff --git a/doc/lua_api.txt b/doc/lua_api.txt index d6b8fc5bb..13881ef70 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2234,6 +2234,9 @@ Helper functions version entirely. To check for the presence of engine features, test whether the functions exported by the wanted features exist. For example: `if minetest.nodeupdate then ... end`. +* `minetest.sha1(data, [raw])`: returns the sha1 hash of data + * `data`: string of data to hash + * `raw`: return raw bytes instead of hex digits, default: false ### Logging * `minetest.debug(...)` |