当前位置:网站首页>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边栏推荐
- Why distributed IDS? What are the distributed ID generation schemes?
- Using DBF of VFP to web salary query system
- quarkus saas动态数据源切换实现,简单完美
- 建造者模式
- redis的dict的扩容机制(rehash)
- Thingspanel releases Internet of things mobile client (multiple pictures)
- 为什么要分布式 id ?分布式 id 生成方案有哪些?
- Spark runs wordcount (case 2)
- Idea uses the fast request interface for debugging
- Dynamic programming to solve stock problems (Part 1)
猜你喜欢

What should I do to dynamically add a column and button to the gird of VFP?

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

Hangzhou / Beijing neitui Ali Dharma academy recruits academic interns in visual generation (talent plan)

Multiple clicks of the button result in results

時創能源沖刺科創板:擬募資11億 年營收7億淨利反降36%

SQL注入漏洞(绕过篇)

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

Source code analysis of AQS & reentrantlock

分享7个神仙壁纸网站,让新的壁纸,给自己小小的雀跃,不陷入年年日日的重复。

Redis6 note02 configuration file, publish and subscribe, new data type, jedis operation
随机推荐
Introduction to JVM principle
Detailed explanation of spark specification
客户经理的开户二维码开户买股票安全吗?有谁知道啊
VFP uses Kodak controls to control the scanner to solve the problem that the volume of exported files is too large
Using DBF of VFP to web salary query system
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?
Handler、Message、Looper、MessageQueue
How to use the markdown editor
Where do the guests come from
推荐一款M1电脑可用的虚拟机软件
Is industrial securities a state-owned enterprise? Is it safe to open an account in industrial securities?
SQL injection vulnerability (bypass)
Cesium editing faces
Tool usage summary
ROS 笔记(06)— 话题消息的定义和使用
基于超算平台气象预警并行计算架构研究
Ladder side tuning: the "wall ladder" of the pre training model
Niuke.com: Candy distribution
RPC typical framework
一个硬件工程师走过的弯路