ligos/readablepassphrasegenerator

Failed to generate a password / Custom Dictionnary

regisdenice opened this issue ยท 3 comments

Thank you for making this plugin, I think your plugin has a great potential ๐ŸŽ‰ ๐Ÿฅณ

Goal

Enjoy your plugin in my language 1

Action

I am building a French dictionary, and I share my 0.1 test version ReadablePassphrase - French 0_1.xml 2

Issue

The Preview tab Failed to generate a password, withe either message:

  1. The sequence contains no matching elements 3
  2. maxExlusive must be positive
    Parameter Name: maxExlusive
    The actual value was 0. 4

Note; your plugin creates password with my own dictionary ๐Ÿ˜„ ๐Ÿ‘ _

How to reproduce ?

  1. KeePass > Tools > Generate Password... > Generating using custom algorithm > Readable Passphrase Generator > Options > Use your own dictionary > ReadablePassphrase - French 0_1.xml > OK > Preview tab 3
  2. (Then from the Generating using custom algorithm window) > Options > OK > Preview tab 4

Request

In order to build (and share) my dictionary, please could you help me understand what I am missing ?

Footnotes

  1. I understand better my language than English than C# :D
    I have more trouble remembering the unknown words that might form a sentence that makes no sense but is grammatically almost correct. โ†ฉ

  2. As I did not find a template, my dictionary is based on:
    your example: https://github.com/ligos/readablepassphrasegenerator/wiki/Make-Your-Own-Dictionary
    and your dictionaries: https://github.com/ligos/readablepassphrasegenerator/tree/master/trunk/MergePartsOfSpeech โ†ฉ

  3. The sequence contains no matching elements
    2024 08 23 - 18 55 47 Preview Exception Often
    2024 08 23 - 18 55 03 Configuration โ†ฉ โ†ฉ2

  4. maxExlusive must be positive Parameter Name: maxExlusive The actual value was 0.
    2024 08 23 - 18 55 53 Preview Exception Rarely
    2024 08 23 - 19 24 39 Configuration Reopened โ†ฉ โ†ฉ2

I forgot to mention that I do not have this issue when using the built-in dictionary.

Hi @regisdenice, looks like you've made a great start to a French dictionary!
I wish you well with your work ๐Ÿ™‚

I was able to reproduce your error. It looks like its related to numbers. It appears the plugin assumes a dictionary has at least one number.

I was able to resolve the issue by adding a <numberRange> to your dictionary:
image

The only way to add numbers is via <numberRange>. That is OK for numerals (like 1, 2, 3, etc). But I'll make another issue to add <number value="one"> or <number value="un">, at some time in the future.

Let me know if this doesn't work.
Murray