Verotel要求使用sha1_hex函数对一些数据进行哈希处理。到底是什么?整个互联网上都没有关于它的信息。他们说“使用SHA-1哈希(十六进制输出)”。Sha1输出十六进制?以下是一个我无法重现的示例:
sha1_hex("abc777X:description=some description of product:priceAmount=51.20:priceCurrency=EUR:shopID=60678:version=1")
= 04d87d2718767ea0bef259c436ec63e3cde05be2
sha1_hex("abc777X:description=some description of product:priceAmount=51.20:priceCurrency=EUR:shopID=60678:version=1")
= 04d87d2718767ea0bef259c436ec63e3cde05be2