-
-
Notifications
You must be signed in to change notification settings - Fork 71
Replaced words.rs with password_generator.rs #390
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
base: master
Are you sure you want to change the base?
Conversation
…or some buttons I was going to implement in cursive.
|
Thanks for the pull request! I think there is a case to be made to be able to both generate passwords with normal words, and more dense entropy. Maybe this should be a selection option on the generate password dialog. |
|
I added a passphrase generator with the same word list used before and included a dialog option in cursive to use the password generator or the passphrase generator. Let me know if you have any other suggestions. |
…me for open and create in cursive
|
Made the suggested changes. |
… or 1 for less or more entropy in passwords. Also, included an option to reveal password and passphrase so you can see what your password will be before saving.
|
I added a bunch of new dialog options. Let me know if you have any nits! There is a bug currently with reveal password where if you generate a password and try to make the password secret again, you need to press the reveal button a couple times to get it to make the password secret again. Let me know if you have a fix for this. |
| use rand::seq::SliceRandom; | ||
|
|
||
| pub fn passphrase_generator(wordcount: i32) -> io::Result<Vec<String>> { | ||
| let filename = "share/wordlists/eff_large.wordlist"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking a long time to review this.
I don't think this location will work, on a normal linux distribution the binary will be placed in /usr/bin/ripasso-cursive and these kind of files would go into something like /usr/share/ripasso/eff_large.wordlist.
I think the easiest solution would be to put the wordlist into the binary at compile time.
In this pull request I removed words.rs and it's use in the generate password button in cursive. This is because the password's generated were only 6 random all lower cased words. I replaced it with a function that creates random passwords containing all lower case letters, uppercase letters, numbers, and special characters. If you desire even more security you can change the type from 0 to 1 in password_generator() which includes the extended ASCII characters.