crypto.sha512

类型 常量
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