1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Expose SHA256 algorithm to Lua (#14403)

Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
This commit is contained in:
sfan5
2024-02-25 18:12:23 +01:00
committed by GitHub
parent fa1d80b53b
commit 762fca538c
4 changed files with 38 additions and 0 deletions

View File

@@ -5484,6 +5484,9 @@ Utilities
* `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
* `minetest.sha256(data, [raw])`: returns the sha256 hash of data
* `data`: string of data to hash
* `raw`: return raw bytes instead of hex digits, default: false
* `minetest.colorspec_to_colorstring(colorspec)`: Converts a ColorSpec to a
ColorString. If the ColorSpec is invalid, returns `nil`.
* `colorspec`: The ColorSpec to convert