Compatible Unicode Intrinsic Functions - IsHashEqual Method

Does the hash value match the derived value

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the values are equal
Hash*Input (Optional)Unicode StringValue to be hashed
Usage*InputEnumerationSpecifies how the Hash is used
Algorithm*InputEnumerationHashing algorith to be used

Details

The IsHashEqual method tests the supplied hash value against a derived value.
 
The Usage and Algorithmz parameters allow different hashing mechanisms to be used.

Usage Allowed Values

Enum ValueDescription
DigestThe resulting hash will be used as a message digest, generally to verify the integrity of a message and detect accidental alterations to any part of the message
PasswordA sequence of cryptographically secure random number (salt) will be added to the input before it gets hashed to protect the hash against lookup table attacks. You would generally store the resulting password hash in your user database table so it can be verified during the login process.

Algorithm Allowed Values

Enum ValueDescription
PBKDF2Password based key derivation function 2
MD5Widely used hash function producing a 128-bit hash value
SCryptPassword based key derivation function
SHA256Hash function designed by the United States National Security Agency


 
 

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2