Hash

myHashModule.Hash(inputData);

myHashModuleThe name of the Hashing module structure
inputDataThe data to hash in DATA format
Return:Hashed contents in DATA format

The Hash function creates a hash of the given inputData, using the hash algorithm defined in the Hashing module.

Example:

Import STD;

//Hashing module definition
myHashModuleSha512 := Std.Crypto.Hashing('sha512'); 
myHashModuleSha256 := Std.Crypto.Hashing('sha256'); 

DATA hash1 := myHashModuleSha512.Hash((DATA)'The quick brown fox jumps over the lazy dog');
DATA hash2 := myHashModuleSha256.Hash((DATA)'The quick brown fox jumps over the lazy dog');

OUTPUT(hash1);
OUTPUT(hash2);