You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First and foremost, I would like to express my sincere gratitude to the creators and contrubutors of this package. We have been using the original version from Dropbox for a long time, but this rewrite has taken things to a new level.
In any case, we are currently developing a mobile application where authorization is handled with OpenID Connect (OIDC) provider. Both on the backend and frontend, we use @zxcvbn-ts/* to assess password quality. Unfortunately, due to some odd issues we encountered, we cannot use the implementation based on Chrome Custom Tabs, so all frontend code must be implemented directly in the mobile application. We are using Flutter, so our first step was to review pub.dev in search of a zxcvbn implementation in Dart. Sadly, the libraries available there are based on the original version, so the password suggestions and assessment are not consistent with what @zxcbn-ts/* returns on the backend - which causes issues in terms of user experience.
Consequently, the idea of porting this library to Dart emerged - given that both Dart and TypeScript offer type checking and have fairly similar syntax, the topic seemed straightforward. However, as is often the case, the devil is in the details, so there's still a long way to go before the implementation is complete, but the library is already available and in a limited form, it returns results identical to the original.
So, I'm writing this post to let you all know that such a thing is happening, and I hope you don't hold it against us for creating this Dart port.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First and foremost, I would like to express my sincere gratitude to the creators and contrubutors of this package. We have been using the original version from Dropbox for a long time, but this rewrite has taken things to a new level.
In any case, we are currently developing a mobile application where authorization is handled with OpenID Connect (OIDC) provider. Both on the backend and frontend, we use
@zxcvbn-ts/*
to assess password quality. Unfortunately, due to some odd issues we encountered, we cannot use the implementation based on Chrome Custom Tabs, so all frontend code must be implemented directly in the mobile application. We are using Flutter, so our first step was to reviewpub.dev
in search of azxcvbn
implementation in Dart. Sadly, the libraries available there are based on the original version, so the password suggestions and assessment are not consistent with what@zxcbn-ts/*
returns on the backend - which causes issues in terms of user experience.Consequently, the idea of porting this library to Dart emerged - given that both Dart and TypeScript offer type checking and have fairly similar syntax, the topic seemed straightforward. However, as is often the case, the devil is in the details, so there's still a long way to go before the implementation is complete, but the library is already available and in a limited form, it returns results identical to the original.
So, I'm writing this post to let you all know that such a thing is happening, and I hope you don't hold it against us for creating this Dart port.
Code is available here (MIT Licensed):
https://github.com/inway/dart_zxcvbn.git
And library is listed here:
https://pub.dev/packages/dart_zxcvbn
Beta Was this translation helpful? Give feedback.
All reactions