Type/to search
Built-in Functions
Global
Version
IsVirtual
GetOS
GetPid
GetMeta
Sleep
Unix
UnixNano
_D
GetCommand
GetLastError
SetErrorFilter
_N
_C
_Cross
JSON.parse
JSON.stringify
Encode
MD5
UUID
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Calculate the MD5 hash of the parameter data.

MD5(data)

Examples

Compute the MD5 hash of the string hello world.

javascript
function main() { Log(MD5("hello world")) // Output: 5eb63bbbe01eeed093cb22bb8f5acdc3 }
python
def main(): Log(MD5("hello world")) # Output: 5eb63bbbe01eeed093cb22bb8f5acdc3
rust
fn main() { Log!(MD5("hello world")); // Output: 5eb63bbbe01eeed093cb22bb8f5acdc3 }

Returns

TypeDescription

string

The MD5 hash value.

Arguments

NameTypeRequiredDescription

data

string

Yes

The data on which to perform the MD5 calculation.

See Also

Remarks

After calling the MD5("hello world") function, the return value is: 5eb63bbbe01eeed093cb22bb8f5acdc3.