Type Constant Library crypto.* Revision 2017.3060 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 | ✓ | ✓ |
Windows Phone 8 | ✓ | ✓ |
local crypto = require( "crypto" ) local hash = crypto.digest( crypto.sha1, "test" ) print( hash ) --> a94a8fe5ccb19ba61c4c0873d391e987982fbbd3