mjhm / lodash-match-pattern

Deep JSON pattern matching library
MIT License
50 stars 3 forks source link

add _.isPasswordHash check for bcrypt style password hash #36

Closed mjhm closed 7 years ago

mjhm commented 7 years ago

https://en.wikipedia.org/wiki/Bcrypt /\$2\w\$\d\d\$[\w\/\.\:\-\=]{53}$/

mjhm commented 7 years ago

This is probably too specific for the library since there are a ton of password hashing schemes. https://pythonhosted.org/passlib/lib/passlib.hash.html This looks like a good customization example.