Passcore banner

Passcore

3 devlogs
4h 52m 48s

Passcore is a minimal Rust library for scoring password strength. It evaluates passwords based on length, character variety, and uniqueness, producing a score from 0 to 1000. Lightweight and easy to integrate, Passcore helps you quickly assess password security in your Rust projects.

Eli Nelson

Ok, so I was very disappointed with today’s performance, so I found some more time to keep working!
I was able to work for another hour or so, and after reading some documentation about Levenshtein distance, I was able to finish the penalties function.

I found a list of the 100k most-used passwords (link to list), and it helped out quite a bit with the penalties!

The speed was pretty slow at first (around 80ms per password), but I realized that was just the first password since it needed to load the list.
After that, it matches the speed of other crates like zxcvbn pretty closely (around 3ms per password).

Attachment
0
Eli Nelson

Today I worked on documentation for quite a while. I ran into an issue where examples can’t use non-public functions, so I decided to make the helper scoring functions public. This also lets them show up in the documentation.

Overall, I didn’t get as much done as I would have liked today, but I’ll keep working on it Monday.

PS: If anyone knows how to make a new line without or taking up an additional line of comments please let me know!

Attachment
0
Eli Nelson

Today I started the Passcore project and worked on designing how the library will score each part of a password. I started with length and decided to write the function before moving on to the next part of password scoring. It took about an hour but now its done!

Attachment
0