当前位置:网站首页>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边栏推荐
- Explain websocket protocol in detail
- 分享7个神仙壁纸网站,让新的壁纸,给自己小小的雀跃,不陷入年年日日的重复。
- 翌圣生物冲刺科创板:25%收入来自新冠产品销售 拟募资11亿
- WebRTC Native M96 基础Base模块介绍之实用方法的封装(MD5、Base64、时间、随机数)
- Redis6 note02 configuration file, publish and subscribe, new data type, jedis operation
- SQL injection vulnerability (bypass)
- Caused by: org. xml. sax. SAXParseException; lineNumber: 1; columnNumber: 10; Processing matching '[xx][mm][ll]' is not allowed
- Research on parallel computing architecture of meteorological early warning based on supercomputing platform
- Continue to cut the picture after the ArcGIS Server is disconnected
- 揭秘GaussDB(for Redis):全面对比Codis
猜你喜欢

Nacos installation and use

How terrible is it not to use error handling in VFP?

Idea local launch Flink task

RPC typical framework

Thingpanel publie le client mobile IOT (Multi - images)

JVM 原理简介

Niuke.com: Candy distribution

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

牛客网:分糖果问题

Use of Presto visualization client-yanagishima20.0
随机推荐
VFP a picture processing library, simple and easy to use, free of charge, worth recommending
Use of JSP sessionscope domain
寿命分布 4种
元素定位不到的 9 种情况
JVM 原理简介
Where do the guests come from
Share 7 immortal wallpaper websites, let the new wallpaper give you a little joy, and don't fall into the repetition year after year.
Sword finger offer II 091 Painting house: application of state machine DP
Spark tuning tool -- detailed explanation of sparklens
Wait (), notify (), notifyAll (), sleep (), condition, await (), signal()
CMU提出NLP新范式—重构预训练,高考英语交出134高分
Solution to the timeout scenario of Flink streaming computing (official live broadcast)
Thingspanel releases Internet of things mobile client (multiple pictures)
CFCA安心签接入
Recommend a virtual machine software available for M1 computer
Two ways of redis persistence -- detailed explanation of RDB and AOF
Introduction to JVM principle
RPC typical framework
建造者模式
Develop two modes of BS mode verification code with VFP to make your website more secure