Commit Graph

5 Commits

Author SHA1 Message Date
Grant Moyer b9cac4b68a Make word seperator customizable and add uppercase option 2022-03-29 19:10:44 -04:00
Grant Moyer 3f769ac813 Convert tabs to spaces 2022-03-28 23:23:04 -04:00
Grant Moyer 0003a45efc Modify GeneratorPresets and PasswordGenerator directly
By modifying these objects, both the generator view and the generator presets view are affected.
2022-03-28 23:22:33 -04:00
Grant Moyer d78e242b82 Remove extraneous function from passphrase-generator 2022-03-20 13:47:06 -04:00
Grant Moyer bc92844a51 Add passphrase-generator plugin
This plugins generates passphrases using the [EFF's long wordlist][1]. Implements keeweb/keeweb#210.

The functionality is currently very basic: it adds adds a preset to the password generator view called "passphrase", and lets you choose the number of space-seperated words to generate with the length slider. It ignores all the other options from the generator view.

In the future, I'd like to improve the UX for the plugin by removing extraneous options from the generator view and allowing the user to save custom passphrase presets. I'd also like to add an option the change the word seperator, for example from ' ' to '-'.

Currently, the wordlist is not compressed, since there is no decompression api exposed to plugins. However, even with compression, the wordlist would need to be stored in the plugin.js file, likely in base64, since plugins cannot access external resources. The uncompressed wordlist is 60KiB, while the deflate compressed list, encoded in base64, is 32KiB.

[1]: https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases
2022-03-20 13:25:22 -04:00