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.
Version : 1.2
Version : 3.0 : added the optional encoding parameter.
Parameters :
text : the text to process.
algorithm ( optional ) : The type of hashing function to use. Default is to use SHA256.
encoding ( optional ) : Possible values are BE_Encoding_Hex or BE_Encoding_Base64 with no encoding being the default.
Result : the output of the hash function specified.
Examples :
BE_MessageDigest ( $text )
BE_MessageDigest ( $text ; BE_MessageDigestTypeMD5 )
BE_MessageDigest ( $text ;BE_MessageDigestTypeSHA256; BE_Encoding_Base64)