Looking for two-way cryptography (encryption+decryption)? Please, visit encrypt.
Password.hash('password', new PBKDF2()); // $pcks$64,10000,64$530f8afbc74536b9a963b4f1c4cb738bcea7403d4d606b6e074ec5d3baf39d18$56158864e365bd78f6afda27f9a239bcb3f2b7a4773d4c0d0858c86266119d1e35aae9ca1a4777ed3d85c42caeed0c57cc7e09fe7d152d5d4d4ee08506c2b41a
Password.verify('password', previousOutput); // true Password.verify('secret', previousOutput); // false
In almost cases, you should rely on default PRNG for salts. It is cryptographically secure and unique for each password.
On the other hand, you are encouraged to change interations count for what your hardware can handle.
|Block size||64 bytes|
|Salt||32 bytes Fortuna|
|Key length||64 bytes|
Waiting for Argon2.
Add this to your package's pubspec.yaml file:
dependencies: password: ^0.1.1+2
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.1+2||Jul 23, 2018|
|0.1.1+1||Jun 2, 2018|
|0.1.1||Jun 2, 2018|
|0.1.0||Jun 2, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
CHANGELOG.md. (-20 points)
Changelog entries help clients to follow the progress in your code.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use