| |

VerySource

 Forgot password?
 Register
Search
View: 1199|Reply: 9

| M | md5 Encryption is irreversible How to save user password? Then if the user does n’t remember how we got it back

[Copy link]

2

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-16 16:00:01
| Show all posts |Read mode
Just watched a post about MD5 encryption
I also know that md5 encryption is irreversible
Then I feel like there is no place to use MD5.
I generally use DES encryption
Where is MD5 used?
How to save user password?
Then if the user does n’t remember how we got it back
Reply

Use magic Report

0

Threads

10

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-21 08:54:02
| Show all posts
MD5 encryption is a relatively common encryption method for user passwords, which is of course irreversible. If the user forgets the password, the user can reset the password by prompting the question through the password.
Reply

Use magic Report

0

Threads

41

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-1-21 09:45:01
| Show all posts
You can send a random password to the user's email.
Reply

Use magic Report

2

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-21 10:18:01
| Show all posts
liyaoxing
--------------
md5 encryption is irreversible
Then how to get the user's password (the user's password has been MD5 encrypted)
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-21 10:27:01
| Show all posts
The password does not have to be decrypted.

My passwords are all added using md5.

Just compare the encrypted string when logging in.

Retrieving your password is actually resetting it. Let the user reset one.
Reply

Use magic Report

3

Threads

29

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-21 12:54:01
| Show all posts
md5 is generally used for digital signatures, not encryption

For example, if A sends a document to B, then according to md5, it can be determined whether the document has been tampered with during the sending process, and it can also prevent non-repudiation. Like cab signature you can choose md5

If md5 is used for encryption, this is the situation that Brother Mu Bai said.
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-21 14:00:01
| Show all posts
update tableName set skey = @ skey where answer = @ Password prompt question.
Reply

Use magic Report

2

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-21 14:36:01
| Show all posts
Oh. .
In other words, when MD5 did the password, the original password could not be recovered.
Must be reset yes
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-1-21 16:27:01
| Show all posts
In other words, when MD5 did the password, the original password could not be recovered.
Must be reset yes
===============
Yes.
Reply

Use magic Report

0

Threads

21

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-21 17:00:01
| Show all posts
Asshenmue024said, at this time, you can only randomly generate a password and encrypt it with md5 to change the user's password.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list