类型 常量 库 crypto.* 修订 版本 2024.3703 关键词 crypto, MD5 
用于指定 MD5 算法(消息摘要算法 5)的常量。
crypto.md5
crypto.digest() 和 crypto.hmac() 函数在以下平台上受支持
| 平台 | crypto.digest() | crypto.hmac() | 
|---|---|---|
| Android | ✓ | ✓ | 
| iOS | ✓ | ✓ | 
| macOS | ✓ | ✓ | 
| Windows 桌面 | ✓ | ✓ | 
local crypto = require( "crypto" ) local hash = crypto.digest( crypto.md5, "test" ) print( hash ) --> 098f6bcd4621d373cade4e832627b4f6