Skip to content
Permalink
Browse files

fixed division bug, which was causing a loss of entropy

  • Loading branch information...
fadedbee committed Jun 18, 2019
1 parent 27511d9 commit d013e8536ba0982c5656ed48cc9da427923b1ea2
Showing with 1 addition and 2 deletions.
  1. +0 −1 README.md
  2. +1 −1 passassin.py
@@ -5,4 +5,3 @@ A deterministic password generator, which uses HMAC SHA256.
* From these it generates a 16 character password which meets all common password rules.
* Passassin will always generate the **same** password from any given pair of master password and website name.

DO NOT USE THIS YET as it is still under development.
@@ -46,7 +46,7 @@ def gen_candidate(master, org, attempt):
num = int.from_bytes(digest, byteorder='little')
for i in range(0, LENGTH):
index = num % NUM_CHARS
num = int(num / NUM_CHARS)
num = num // NUM_CHARS
candidate += ALL[index]
return candidate

0 comments on commit d013e85

Please sign in to comment.
You can’t perform that action at this time.