Websydian v6.1 online documentationOnline documentation - Websydian v6.1

SignFields Function

This function signs a message contained in a string.  The SignFields function is called by the EventHandlerWithSignature and the PageGeneratorWithSignature patterns.

The input to the function is the message to be signed plus a private key.  The SignFields function combines the key and the message, and an MD2 function is called to encrypt the resulting string.

If the key field is blank, the name of the group model is used.

The message used as input to the function will usually be the hidden fields of an HTML form concatenated to one string.  This concatenation is performed by the calling function (Event Handler or Page Generator with signature).

In the iSeries variant, the string resulting from combination of the key and the message, cannot be more than 256 characters long.  Characters after the 256-character limit will be ignored.

Inheritance