当前位置:网站首页>MD5 learning

MD5 learning

2022-06-11 10:03:00 Don't want to be a programmer

What is? MD5: Information summarization algorithm 5 generation
It mainly enhances the complexity and irreversibility of the algorithm
MD5 Irreversible , Specific value md5 It's the same
MD5 To crack the website , There is a dictionary behind it , Brute force

create table testmd5
(
	id int(4)not null ,
	name varchar(20) not null,
	pwd varchar(50) not null,
	primary key (id)
)engine=InnoDB default charset = utf8;
-- insert data 
insert***
-- encryption 
update testmd5 set pwd=MD5(pwd)
-- Generally, it is encrypted when inserting 
insert into testmd5 values(3,'wangwu',MD5('123456'))
-- How to check : Secrets passed in by users , Conduct md5 encryption , Then compare the encrypted values 
select * from testmd5 where name='wangwu' and pwd=MD5('123456')
原网站

版权声明
本文为[Don't want to be a programmer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111001157153.html