当前位置:网站首页>Encapsulation of practical methods introduced by webrtc native M96 basic base module (MD5, Base64, time, random number)
Encapsulation of practical methods introduced by webrtc native M96 basic base module (MD5, Base64, time, random number)
2022-06-25 11:46:00 【Crossing the river with a reed 694】
rtc_base message_digest
Implements many types of message summarization algorithms ,DIGEST_MD5、DIGEST_SHA_1、DIGEST_SHA_224、DIGEST_SHA_256、DIGEST_SHA_384、DIGEST_SHA_512[];
MD5:
MD5 Information digest algorithm ( English :MD5 Message-Digest Algorithm), A widely used cryptographic hash function , I can produce one 128 position (16 byte ) Hash value (hash value), Used to ensure complete and consistent transmission of information .
inline std::string MD5(const std::string& input) {
return ComputeDigest(DIGEST_MD5, input);
}
std::string HA1 = MD5(sensitive);
ExplicitZeroMemory(sensitive, len);
delete[] sensitive;
std::string HA2 = MD5(A2);
std::string dig_response = MD5(HA1 + ":" + middle + ":" + HA2);
HMAC Is the key related hash operation message authentication code (Hash-based Message Authentication Code) Abbreviation
Use :
size_t ret = rtc::ComputeHmac(rtc::DIGEST_SHA_1, key, keylen, buf.Data(),
msg_len_for_hmac边栏推荐
猜你喜欢

SQL注入漏洞(繞過篇)

SQL注入漏洞(绕过篇)

What is the development history, specific uses and structure of the chip

西山科技冲刺科创板:拟募资6.6亿 郭毅军夫妇有60%表决权

Design and implementation of university laboratory goods management information system based on SSH

Shichuang energy rushes to the scientific innovation board: it plans to raise 1.1 billion yuan, with an annual revenue of 700million yuan and a 36% decrease in net profit

VFP develops a official account to receive coupons, and users will jump to various target pages after registration, and a set of standard processes will be sent to you

Record the process of submitting code to openharmony once

Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights

How terrible is it not to use error handling in VFP?
随机推荐
The service layer reports an error. The XXX method invalid bound statement (not found) cannot be found
Leetcode 1249. Remove invalid brackets (awesome, finally made)
牛客网:旋转数组
Caused by: org. xml. sax. SAXParseException; lineNumber: 1; columnNumber: 10; Processing matching '[xx][mm][ll]' is not allowed
SQL injection vulnerability (bypass)
Golden sun education listed in the U.S.: a small cap medium cap stock with a market value of USD 360million
Problems encountered using easyexcel
寿命分布 4种
Sentinel integrated Nacos data source
Redis6 note02 configuration file, publish and subscribe, new data type, jedis operation
Is industrial securities a state-owned enterprise? Is it safe to open an account in industrial securities?
Niuke: rotation array
Real software developers will use this method to predict the future
记一次有趣的逻辑SRC挖掘
.Net Core 中使用工厂模式
数据库系列:MySQL索引优化总结(综合版)
金太阳教育美股上市:市值3.6亿美元 成小盘中概股
现在网上炒股开户身份证信息安全吗?
Bayes
Causes and solutions of over fitting