mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Add sha1 to lua utils. (#6563)
This commit is contained in:
		
				
					committed by
					
						
						Loïc Blot
					
				
			
			
				
	
			
			
			
						parent
						
							a95e0d1876
						
					
				
				
					commit
					65c5539035
				
			@@ -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(...)`
 | 
			
		||||
 
 | 
			
		||||
@@ -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(...)`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user