modules-purescript icon indicating copy to clipboard operation
modules-purescript copied to clipboard

Add way to set ok/good levels

Open CarsonF opened this issue 5 years ago • 3 comments

// setup following readme
hsimp('hello there');

result is

{
  time: '1 year',
  level: null,
  checks: []
}

Is this expected?

CarsonF avatar Jul 17 '20 18:07 CarsonF

I think that is right. The space means that it doesn't fit into any of the alphanumeric checks, but it's not quite long enough to get an achievement. It's also not in the top 10,000 passwords.

Patterns it checks against are here: https://github.com/howsecureismypassword/modules-purescript/blob/develop/data/patterns.json – easy to add more if you can think of any that it should match. I've not looked at them critically for a few years.

smallhadroncollider avatar Jul 20 '20 13:07 smallhadroncollider

Hmm ok. I see how that hsimp.net also gives the same result. I was hoping all possibilities would have a level I could work with.

My next thought is to map the time to a level. I see the old archived library provides thresholds to map to the levels. I didn't want to pull those in since they are archived. Would this be possible here? Or maybe getting the time as a number so calculations could be done on it manually?

CarsonF avatar Jul 20 '20 16:07 CarsonF

Yes, I think I need to add something like that to this.

smallhadroncollider avatar Jul 23 '20 13:07 smallhadroncollider