DecryptSignedData (open)

Decrypt a string encrypted by EncryptAndSignData

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION DecryptSignedData(STRING data, STRING algorithm, STRING encryptkey)

Parameters

STRING data

Signed data (generated by EncryptAndSignData)

STRING algorithm

Algorithm to use (currently only supported: SHA-1,BLOWFISH+ECB,8). Must be the same as used to sign the data.

STRING encryptkey

Key to use with the algorithm. Must be the same as the key used to sign the data.

Return value

STRING

The original data, or an empty string if hash verification failed