add passphrase generator
resolves #426
- Admin can choose which password generator to use (random or phrases).
- Admin can set minimum number of words, which is overridden by minLength requirement of policy if the phrase is too short.
- Generated phrases have the following style:
Word-Word-Word3where a random number is placed behind a random word in the phrase. - Generated phrases always contain special chars (seperator
-), a number, uppercase letters and lowercase letters, so any generated phrase will, given it satisfies the length requirement, satisfy every other requirement.
Uses https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt as wordlist.
user view (e.g. password for share links):
admin settings view (admins can toggle the generation of phrases and specify minimum word count):
Hello there, Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.
Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
Thank you for contributing to Nextcloud and we hope to hear from you soon!