aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.md3
-rw-r--r--doc/lua_api.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index d8e2da69c..3655cf235 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -630,6 +630,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.check_for_falling 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 d9a31b9f4..8721b6b23 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2391,6 +2391,9 @@ Strings that need to be translated can contain several escapes, preceded by `@`.
version entirely. To check for the presence of engine features, test
whether the functions exported by the wanted features exist. For example:
`if minetest.check_for_falling 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(...)`