Type Constant Library crypto.* Revision Release 2024.3703 Keywords crypto, SHA-512
Constant used to specify the SHA-512 algorithm.
crypto.sha512
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.sha512, "test" ) print( hash ) --> ee26...(etc)...a8ff