Fortinet white logo
Fortinet white logo

Script Reference Guide

Md5(str)

Md5(str)

Returns the MD5 calculated for the specified string.

Syntax

Md5(str);

Arguments

Name Description

str

The string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “abc”
md5 = md5(str1)
str = “test string”
a=12
md = md5(“%s,123%d”,str,a)
}

Supported Version

FortiADC version 4.8.x and later.

Md5(str)

Md5(str)

Returns the MD5 calculated for the specified string.

Syntax

Md5(str);

Arguments

Name Description

str

The string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “abc”
md5 = md5(str1)
str = “test string”
a=12
md = md5(“%s,123%d”,str,a)
}

Supported Version

FortiADC version 4.8.x and later.