Published on InterSystems Developer Community (https://community.intersystems.com)

主页 > 使用$SYSTEM.Encryption.SHA1Hash()加密string与网络方法不一致

问题
Yubo Mao · 四月 22, 2021

使用$SYSTEM.Encryption.SHA1Hash()加密string与网络方法不一致

在ensemble使用$SYSTEM.Encryption.SHA1Hash()加密“ensmble”得到“t????????????m??Afù????÷??%í”,但使用网络的SHA1加密方法得到”74ba9a06cbbc92f06d9b4166f9c5b4f7f8251aed“,如何使用ensemble得到与网络上一样的加密结果

#Ensemble
产品版本: Ensemble 2018.1
$ZV: Cache for Windows (x86-64) 2018.1 (Build 184U) Wed Sep 19 2018 09:09:22 EDT [HealthShare Modules:Core:15.032.1010 + Linkage Engine:15.032.1010]

源 URL:https://cn.community.intersystems.com/post/%E4%BD%BF%E7%94%A8systemencryptionsha1hash%E5%8A%A0%E5%AF%86string%E4%B8%8E%E7%BD%91%E7%BB%9C%E6%96%B9%E6%B3%95%E4%B8%8D%E4%B8%80%E8%87%B4