Recover a salted and hashed password in python

nodebase

I have managed to salt and hash password using this method:

import hashlib, uuid
salt = uuid.uuid4().hex
hashed_password = hashlib.sha512(password + salt).hexdigest()

How do I reverse this process to recover the actual password?

Update: You are supposed to take a password from the user, apply the same salt and hash method to their password, and then compare it with the originally salted/hashed password to see if they match. That makes perfect sense.

Benoît Latinier

You don't. Hashing is a technique which is only one way. This is the whole point of hashing.

You never store raw passwords in order to protect your user if you got a leak of information in your DB.

If you want to implement some "password recover" procedure, you need to do as everyone do, send a email to the person with a temporary link to reset password on send a new one randomly generated.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Recover username and password with spring security

분류에서Dev

Reset or recover GNU screen password

분류에서Dev

How to recover the root password on ubuntu server

분류에서Dev

How to recover the root password on ubuntu server

분류에서Dev

How to remove or recover password from a LibreOffice document

분류에서Dev

What format/algorithm is the hashed password in Windows 7 answer files?

분류에서Dev

It is possible to recover a password (not reset) if you have access to root file system?

분류에서Dev

C #에서 Windows 응용 프로그램의 Salted Password 및 Username을 확인하는 방법은 무엇입니까?

분류에서Dev

nodejs 앱에서 addFollower 메소드의 -hashed_password 속성을 null로 설정할 수 없습니다.

분류에서Dev

가상 필드 사용시 hash_password 필드가 꽉 찼더라도 " 'hashed_password'경로가 필요합니다."

분류에서Dev

Password Maker Python 목록

분류에서Dev

Hide password in python using getpass.getpass()

분류에서Dev

crontab을 통한 MySQLdump---password = / hashed / password / file을 전달하여 일반 텍스트 암호를 사용하지 않고 crontab을 통해 사용할 수 있습니다.

분류에서Dev

crontab을 통한 MySQLdump---password = / hashed / password / file을 전달하여 일반 텍스트 암호를 사용하지 않고 crontab을 통해 사용할 수 있습니다.

분류에서Dev

How to recover splash screen

분류에서Dev

Recover ubuntu from shutdown

분류에서Dev

Unable to recover lost login

분류에서Dev

How to recover from fullscreen crash?

분류에서Dev

Recover Windows Opening Off Screen?

분류에서Dev

Recover Partition Table for exFAT Partition

분류에서Dev

Recover files from Damaged Partitiohn

분류에서Dev

Recover systemd from uninterruptible state

분류에서Dev

Recover formatted HDD data to itself

분류에서Dev

Python : 'set_password'이름이 정의되지 않았습니다.

분류에서Dev

How to recover removed packages with the purge flag?

분류에서Dev

Is there a way to recover the data of unaccessible lines on the terminal?

분류에서Dev

Recover removed file from source tree/RubyMine

분류에서Dev

Recover only Java source code in photorec

분류에서Dev

Recover MX4 Ubuntu Edition

Related 관련 기사

  1. 1

    Recover username and password with spring security

  2. 2

    Reset or recover GNU screen password

  3. 3

    How to recover the root password on ubuntu server

  4. 4

    How to recover the root password on ubuntu server

  5. 5

    How to remove or recover password from a LibreOffice document

  6. 6

    What format/algorithm is the hashed password in Windows 7 answer files?

  7. 7

    It is possible to recover a password (not reset) if you have access to root file system?

  8. 8

    C #에서 Windows 응용 프로그램의 Salted Password 및 Username을 확인하는 방법은 무엇입니까?

  9. 9

    nodejs 앱에서 addFollower 메소드의 -hashed_password 속성을 null로 설정할 수 없습니다.

  10. 10

    가상 필드 사용시 hash_password 필드가 꽉 찼더라도 " 'hashed_password'경로가 필요합니다."

  11. 11

    Password Maker Python 목록

  12. 12

    Hide password in python using getpass.getpass()

  13. 13

    crontab을 통한 MySQLdump---password = / hashed / password / file을 전달하여 일반 텍스트 암호를 사용하지 않고 crontab을 통해 사용할 수 있습니다.

  14. 14

    crontab을 통한 MySQLdump---password = / hashed / password / file을 전달하여 일반 텍스트 암호를 사용하지 않고 crontab을 통해 사용할 수 있습니다.

  15. 15

    How to recover splash screen

  16. 16

    Recover ubuntu from shutdown

  17. 17

    Unable to recover lost login

  18. 18

    How to recover from fullscreen crash?

  19. 19

    Recover Windows Opening Off Screen?

  20. 20

    Recover Partition Table for exFAT Partition

  21. 21

    Recover files from Damaged Partitiohn

  22. 22

    Recover systemd from uninterruptible state

  23. 23

    Recover formatted HDD data to itself

  24. 24

    Python : 'set_password'이름이 정의되지 않았습니다.

  25. 25

    How to recover removed packages with the purge flag?

  26. 26

    Is there a way to recover the data of unaccessible lines on the terminal?

  27. 27

    Recover removed file from source tree/RubyMine

  28. 28

    Recover only Java source code in photorec

  29. 29

    Recover MX4 Ubuntu Edition

뜨겁다태그

보관