Fortinet white logo
Fortinet white logo

Script Reference Guide

md5_hex_str(str)

md5_hex_str(str)

Calculates the MD5 of a string input of a string input and outputs the results in HEX format, in some cases you need a version to deal with it.

Syntax

md5_hex_str(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
md = md5_hex_str(input);   --input  can be a cert in DER format
}

Supported Version

FortiADC version 4.8.x and later.

md5_hex_str(str)

md5_hex_str(str)

Calculates the MD5 of a string input of a string input and outputs the results in HEX format, in some cases you need a version to deal with it.

Syntax

md5_hex_str(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
md = md5_hex_str(input);   --input  can be a cert in DER format
}

Supported Version

FortiADC version 4.8.x and later.