Fortinet white logo
Fortinet white logo

Script Reference Guide

Sha1_hex(str)

Sha1_hex(str)

Returns the SHA-1 calculated for the string in hex.

Syntax

Sha1_hex(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “123456789”
sha1 = sha1_hex(str1)
}

Supported Version

FortiADC version 4.8.x and later.

Sha1_hex(str)

Sha1_hex(str)

Returns the SHA-1 calculated for the string in hex.

Syntax

Sha1_hex(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “123456789”
sha1 = sha1_hex(str1)
}

Supported Version

FortiADC version 4.8.x and later.