Fortinet white logo
Fortinet white logo

Script Reference Guide

Sha256(str)

Sha256(str)

Calculates the SHA-256 of a string input and stores the result in an intermediate variable.

Syntax

Sha256(str);

Arguments

Name Description

str

The string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “abc”
str2 = sha256(str1)
}

Supported Version

FortiADC version 4.8.x and later.

Sha256(str)

Sha256(str)

Calculates the SHA-256 of a string input and stores the result in an intermediate variable.

Syntax

Sha256(str);

Arguments

Name Description

str

The string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str1 = “abc”
str2 = sha256(str1)
}

Supported Version

FortiADC version 4.8.x and later.