Does anyone know the coldfusion equivelent for this php code?
$calcedVerify = sha1(mb_convert_encoding($pop, "UTF-8"));
$calcedVerify = strtoupper(substr($calcedVerify,0,8));
Thanks!
Does anyone know the coldfusion equivelent for this php code?
$calcedVerify = sha1(mb_convert_encoding($pop, "UTF-8"));
$calcedVerify = strtoupper(substr($calcedVerify,0,8));
Thanks!
Copyright © 2021 Jogjafile Inc.
Note: The hexadecimal hash returned is already in uppercase.
SHA-1should be available in Standard Edition according to Adobe ColdFusion 9 Web Application Construction Kit even though the hash() doc said otherwisesubstr()~=Mid()but CF index starts from 1 instead of 0.strtoupper()==ucase()mb_convert_encoding()~=CharsetDecode()