Type Constant Library crypto.* Revision Release 2024.3703 Keywords crypto, SHA-1
Constant used to specify the SHA-1 algorithm.
crypto.sha1
The crypto.digest() and crypto.hmac() functions are supported on a
Platform | crypto.digest() | crypto.hmac() |
---|---|---|
Android | ✓ | ✓ |
iOS | ✓ | ✓ |
macOS | ✓ | ✓ |
Windows Desktop | ✓ | ✓ |
local crypto = require( "crypto" ) local hash = crypto.digest( crypto.sha1, "test" ) print( hash ) --> a94a8fe5ccb19ba61c4c0873d391e987982fbbd3