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

--keyspace calculation showing larger number for 4-word passphrases than 5-word passphrases #68

Open
huertanix opened this issue Jan 7, 2023 · 1 comment

Comments

@huertanix
Copy link

Not sure if this is a bug or just a misunderstanding from my end on how prince derives permutations, but I've been using the --keyspace operator to determine permutation counts for various passphrase sizes (e.g. four-word passphrases versus five-word passphrases) and have run into an issue where the calculated keyspace for five-word passphrases is significantly lower than for four-word passphrases, and this feels like it should not be correct. Here's the wordlist I'm using: https://github.com/freedomofpress/securedrop/blob/develop/securedrop/wordlists/en.txt and here's the example commands and output:

Four-word passphrases

./pp64.bin --dupe-check-disable --elem-cnt-min=4 --elem-cnt-max=4 --keyspace < ~/wordlists/en/securedrop/en.txt
408718275456

Five-word passphrases

./pp64.bin --dupe-check-disable --elem-cnt-min=5 --elem-cnt-max=5 --keyspace < ~/wordlists/en/securedrop/en.txt 
109051768512

I'm using Ubuntu 22.04.1 on a 64-bit Intel CPU, glibc version 2.35 in case that helps.

@roycewilliams
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants