crypto.md4

Type Constant
Library crypto.*
Revision Release 2022.3683
Keywords crypto, MD4

Overview

Constant used to specify the MD4 algorithm (Message-Digest algorithm 4).

Syntax

crypto.md4

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.md4, "test" )
print( hash )   --> db346d691d7acc4dc2625db19f9e3f52