2011-10-31 46 views

回答

2
<cfset calcedVerify = Hash(pop ,"SHA-1", "UTF-8")> 
<cfset calcedVerify = Left(calcedVerify, 8)> 

注意:返回的十六进制散列已经是大写。

SHA-1应根据Adobe ColdFusion 9 Web Application Construction Kit在标准版可用即使hash() doc否则所述

substr()〜= Mid()但CF指数从1而不是0。

strtoupper() ==开始ucase()

mb_convert_encoding()〜= CharsetDecode()