SHA512 + HMAC - MetaTrader 5 库
SHA512 类移植自http://www.zedwood.com/article/cpp-sha512-function
HMAC 函数移植自https://en.wikipedia.org/wiki/Hash-based_message_authentication_code
使用示例(测试于http://www.freeformatter.com/hmac-generator.html)
空白OnStart() { 细绳 在=“感谢您的使用!”; 细绳 出去=SHA512::sha512(在); 打印(“sha512('”,在,“'):“,出去); 细绳关键=“哈希键”; 出去=SHA512::hmac(在, 钥匙); 打印(“hmac-sha512:”,出去); } 输出 sha512(“感谢您使用!”): efa2046d83de5504f28fc95e470e726f7f26f4a53475c516759a109a1553850e 0836d1fb7a6ff54d27fa816e4ef8f93b6c63c8a133b3a39a8218313a506b870e hmac-sha512:61d45921efeb4fe22dc7f4afb393ddfc5603a5b1775cb377d0428d40fb49a8be89c606d89b3489a848105f67feeb329a7cda029d3b9b5f412436f87c016d83ed
附件下载
📎 sha512.mq5 (16.03 KB)
Source: MQL5 #18158
💡 精彩内容推荐
✍️ 楼主最新发布
- •
- •
- •
- •
- •
- •
🔗 您可能感兴趣
- •
- •
- •
- •
- •
- •
🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录
