dictionary-attack

Why do salts make dictionary attacks 'impossible'?

送分小仙女□ 提交于 2019-12-27 16:28:52
问题 Update: Please note I am not asking what a salt is, what a rainbow table is, what a dictionary attack is, or what the purpose of a salt is. I am querying: If you know the users salt and hash, isn't it quite easy to calculate their password? I understand the process, and implement it myself in some of my projects. s = random salt storedPassword = sha1(password + s) In the database you store: username | hashed_password | salt Every implementation of salting I have seen adds the salt either at

Why do salts make dictionary attacks 'impossible'?

被刻印的时光 ゝ 提交于 2019-12-27 16:26:02
问题 Update: Please note I am not asking what a salt is, what a rainbow table is, what a dictionary attack is, or what the purpose of a salt is. I am querying: If you know the users salt and hash, isn't it quite easy to calculate their password? I understand the process, and implement it myself in some of my projects. s = random salt storedPassword = sha1(password + s) In the database you store: username | hashed_password | salt Every implementation of salting I have seen adds the salt either at

Python - how to generate wordlist from given characters of specific length

試著忘記壹切 提交于 2019-12-01 06:27:35
I want to perform a dictionary attack and for that I need word lists. How to generate word list from given characters of specific length ( or word length from min length to max length )? I have tried itertools.combinations_with_replacements and itertools.permutations , but it does not help. They does not have all the word lists that it should return. Any help will be greatly appreciated. Thank you. Use itertools.product : >>> import itertools >>> >>> chrs = 'abc' >>> n = 2 >>> >>> for xs in itertools.product(chrs, repeat=n): ... print ''.join(xs) ... aa ab ac ba bb bc ca cb cc To get word from

Python - how to generate wordlist from given characters of specific length

两盒软妹~` 提交于 2019-12-01 04:53:30
问题 I want to perform a dictionary attack and for that I need word lists. How to generate word list from given characters of specific length ( or word length from min length to max length )? I have tried itertools.combinations_with_replacements and itertools.permutations , but it does not help. They does not have all the word lists that it should return. Any help will be greatly appreciated. Thank you. 回答1: Use itertools.product: >>> import itertools >>> >>> chrs = 'abc' >>> n = 2 >>> >>> for xs

Why do salts make dictionary attacks 'impossible'?

大兔子大兔子 提交于 2019-11-26 21:16:27
Update: Please note I am not asking what a salt is, what a rainbow table is, what a dictionary attack is, or what the purpose of a salt is. I am querying: If you know the users salt and hash, isn't it quite easy to calculate their password? I understand the process, and implement it myself in some of my projects. s = random salt storedPassword = sha1(password + s) In the database you store: username | hashed_password | salt Every implementation of salting I have seen adds the salt either at the end of the password, or beginning: hashed_Password = sha1(s + password ) hashed_Password = sha1