Type Constant Library crypto.* Revision Current Public Release (2018.3326) Keywords crypto, SHA-256
Constant used to specify the SHA-256 algorithm.
crypto.sha256 |
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.sha256, "test" ) print ( hash ) --> 9f86...(etc)...0a08 |