Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sha1(sha1($salt.$pass.$salt)) #322

Closed
ghost opened this issue Apr 29, 2016 · 4 comments
Closed

sha1(sha1($salt.$pass.$salt)) #322

ghost opened this issue Apr 29, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2016

Can someone add this specific hash type?

sha1(sha1($salt.$pass.$salt))

Thanks a lot!

@trounce1
Copy link
Contributor

@ghost I can implement this very quickly if you still want it?

@trounce1
Copy link
Contributor

i have implemented this algo in #2594

@trounce1
Copy link
Contributor

trounce1 commented Oct 26, 2020

here is sample python code for this algo

from binascii import hexlify
from hashlib import sha1

password = b'hashcat'
salt = b'232725102020'

sth = salt + password + salt

r1 = hexlify(sha1(sth).digest())

r2 = sha1(r1).digest()

print(hexlify(r2))

it can be run here https://repl.it/repls/StunningUnripeElement

@jsteube
Copy link
Member

jsteube commented Jun 3, 2021

Support merged into master, thanks @trounce1 for the contribution.

@jsteube jsteube closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants