crypto.md5

Type Constant
Library crypto.*
Revision Release 2024.3703
Keywords crypto, MD5

Overview

Constant used to specify the MD5 algorithm (Message-Digest algorithm 5).

Syntax

crypto.md5

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.md5, "test" )
print( hash )   --> 098f6bcd4621d373cade4e832627b4f6