crypto.sha512

Type Constant
Library crypto.*
Revision Release 2022.3683
Keywords crypto, SHA-512

Overview

Constant used to specify the SHA-512 algorithm.

Syntax

crypto.sha512

Gotchas

The crypto.digest() and crypto.hmac() functions are supported on a per-platform basis as follows:

Platform crypto.digest() crypto.hmac()
Android
iOS
macOS
Windows Desktop

Example

local crypto = require( "crypto" )
local hash = crypto.digest( crypto.sha512, "test" )
print( hash )   --> ee26...(etc)...a8ff