类型 常量 库 crypto.* 修订版 版本 2024.3703 关键词 crypto、SHA-512
常量用于指定 SHA-512 算法。
crypto.sha512
crypto.digest() 和 crypto.hmac() 函数在
平台 | crypto.digest() | crypto.hmac() |
---|---|---|
Android | ✓ | ✓ |
iOS | ✓ | ✓ |
macOS | ✓ | ✓ |
Windows 桌面版 | ✓ | ✓ |
local crypto = require( "crypto" ) local hash = crypto.digest( crypto.sha512, "test" ) print( hash ) --> ee26...(etc)...a8ff