当前位置:网站首页>What is MD5
What is MD5
2022-07-07 09:20:00 【Wow, it's a small dish】
What is? md5?
md5 Is an irreversible hash algorithm
- Irreversible : Ciphertext can be obtained from plaintext , But you can't get plaintext from ciphertext .
- hash : Get a mapping value through a function , It could be repetitive ! But the probability of repetition is relatively low , For example, set characters + Case letters + Digital password , The probability of getting the same ciphertext through hashing is very, very low .

Application scenarios
Password storage :
On safety grounds , Native passwords cannot be stored directly in the database , If the data is leaked, it will cause many problems , therefore , Will pass the password md5 Encrypted and stored in the database , I'm sure you know that .Consistency check :
This is a usage I found when making payment signatures , Not used before . When the client calls the third-party payment , Need is to use http(s) Transmission request , Once the request is blocked , Be modified , For example, payment 1000 element , Intercepted as 1 element , After successful payment , The third party returns the result of successful payment , It will cause serious damage .So people use a ciphertext , Process the request parameters into a string : for example “amount=50&payMethod=native&id=012345”, Then encrypt the string , Send with the request . After receiving the request, make a consistency check with the plaintext parameters , Check the consistency of parameters .

Of course , The real encryption means involving payment will be more complex , For example, certificates and so on , Using this example is just an illustration md5 It can be used as a means to verify the consistency of passwords .
How to improve security
Add salt
Salt value is a meaningless random string , It can be a paragraph uuid, It can also be a random number . Adding salt can prevent hackers from using some comparison tables to crack simple passwords ( such as 123456,password These common passwords , The frequency of use is very high , You can find ).Multiple encryption
Will be encrypted md5 Re encrypt the password , Cycle a few times , The ciphertext thus formed cannot be found through the comparison table .
边栏推荐
- MySQL common statements
- stm32和电机开发(从单机版到网络化)
- PMP Exam details after the release of the new exam outline
- Three updates to build applications for different types of devices | 2022 i/o key review
- Expérience de port série - simple réception et réception de données
- 【Istio Network CRD VirtualService、Envoyfilter】
- [chaosblade: node disk filling, killing the specified process on the node, suspending the specified process on the node]
- OpenGL 3D graphics rendering
- 十二、排序
- Implementation of corner badge of Youmeng message push
猜你喜欢

Connecting mobile phone with ADB

Systick tick timer

MySql数据库-索引-学习笔记

Reading notes of pyramid principle

Locust performance test 3 (high concurrency, parameter correlation, assembly point)

MySQL common statements

答案在哪里?action config/Interceptor/class/servlet

串口實驗——簡單數據收發

STM32 serial port register library function configuration method

PMP Exam details after the release of the new exam outline
随机推荐
Storage of data in memory
(3/8)枚举的不当用法 之 方法参数(二)
Postman data driven
How to count the number of project code lines
華為HCIP-DATACOM-Core_03day
华为HCIP-DATACOM-Core_03day
[chaosblade: delete pod according to the tag, pod domain name access exception scenario, pod file system i/o failure scenario]
Cesium load vector data
External interrupt to realize key experiment
On December 8th, 2020, the memory of marketing MRC application suddenly increased, resulting in system oom
Selenium mouse sliding operation event
NVIC中断优先级管理
Reading notes of pyramid principle
Confitest of fixture py
Analysis of Hessian serialization principle
徽商期货公司评级是多少?开户安全吗?我想开户,可以吗?
E-commerce campaign Guide
Original collection of hardware bear (updated on May 2022)
MySQL common statements
PMP Exam Preparation experience systematically improve project management knowledge through learning