BE_MessageDigest

BE_MessageDigest(text;{algorithm;encoding})



Returns a hash value generated by the MD5 or SHA functions from the text given, and optional encoding.

Parameters:

- text : the text to process.

- algorithm : The type of hashing function to use. Default is to use BE_MessageDigestAlgorithmSHA256.

- encoding : Possible values are BE_EncodingHex or BE_EncodingBase64 with no encoding being the default.

Keywords:

Message Digest


Version History:

- 1.2 :

- 3.0 : added the optional encoding parameter.

Code Examples:

BE_MessageDigest ( $text )


BE_MessageDigest ( $text ; BE_MessageDigestTypeMD5 )



BE_MessageDigest ( $text ; BE_MessageDigestTypeSHA256 ; BE_EncodingBase64 )


BE_MessageDigest ( $text ; 2 ; 1 ) // BE_MessageDigestAlgorithm_SHA256 and BE_EncodingHex



Still need help? Contact Us Contact Us