Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Description

Returns the result when the specified hashing algorithm is applied to the content of the file the name of which is passed as a parameter.

The result is a hexadecimal encoded character string, with a maximum length of 128 characters in the current implementation (with the SHA-512 algorithm).

 

Syntax

Result = &HASH_FILE(FileName;Algorithm)

 

Parameters

 

Definition

Content

Controls

Result

Alphanumerical variable

Hashing of the file content, encoded in hexadecimal or *BLANK in the event of an error (algorithm not supported, etc.).

 

FileName

Alphanumerical constant or variable

Name of file to be processed.

Mandatory parameter.

Algorithm

Alphanumerical variable or constant.

Name of the hashing algorithm.

The valid values depend on the execution platform and its configuration.

 

The MD5, SHA-1, SHA-256, SHA-384 and SHA-512 algorithms are supported on all the platforms.

Mandatory parameter.

 

Example

If "SIGNATURE" is a 128 character alphanumeric variable and "FILE_NAME" is a program variable:

SIGNATURE = &HASH_FILE(FILE_NAME;'SHA-512')

 

 

 List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette