当前位置:网站首页>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
边栏推荐
- Specific meanings of node and edge in Flink graph
- Dynamic programming to solve stock problems (Part 1)
- 剑指 Offer II 091. 粉刷房子 : 状态机 DP 运用题
- WebRTC Native M96 基础Base模块介绍之实用方法的封装(MD5、Base64、时间、随机数)
- The temporary table from XML to VFP is simple and easy to use and worth collecting
- redis的dict的扩容机制(rehash)
- Use of Presto visualization client-yanagishima20.0
- Research on parallel computing architecture of meteorological early warning based on supercomputing platform
- 记一次有趣的逻辑SRC挖掘
- Comparison between relu and SIGMOD
猜你喜欢
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?
记一次给OpenHarmony提交代码的过程
SQL注入漏洞(繞過篇)
Nacos installation and use
VFP serial port communication is difficult for 9527. Maomao just showed his skill and was defeated by kiss
西山科技冲刺科创板:拟募资6.6亿 郭毅军夫妇有60%表决权
ThingsPanel 发布物联网手机客户端(多图)
Vulnérabilité à l'injection SQL (contournement)
Sentinel integrated Nacos data source
Old ou, a fox friend, has had a headache all day. The VFP format is always wrong when it is converted to JSON format. It is actually caused by disordered code
随机推荐
SQL注入漏洞(类型篇)
時創能源沖刺科創板:擬募資11億 年營收7億淨利反降36%
SQL注入漏洞(繞過篇)
Handler、Message、Looper、MessageQueue
Startups must survive
Deeply understand Flink SQL execution process based on flink1.12
Specific meanings of node and edge in Flink graph
Spark history server performance improvement (I) -- Application List
Spark runs wordcount (case 2)
现在网上炒股开户身份证信息安全吗?
兴业证券是国企吗?在兴业证券开户资金安全吗?
Idea uses the fast request interface for debugging
Why distributed IDS? What are the distributed ID generation schemes?
Very important very important very important very important very important very important very important very important very important
VFP calls the command line image processing program, and adding watermark is also available
Using DBF of VFP to web salary query system
时创能源冲刺科创板:拟募资11亿 年营收7亿净利反降36%
9 cases where elements cannot be located
Whole process of web page request
芯片的发展史和具体用途以及结构是什么样的