diff --git a/server/lib/src/crypt.dart b/server/lib/src/crypt.dart index 37dd63c..e33bf5b 100644 --- a/server/lib/src/crypt.dart +++ b/server/lib/src/crypt.dart @@ -38,7 +38,7 @@ class CheckPasswordRequest { /// Methods for handling passwords. class Crypt { - static final _crypt = PassCrypt('SHA-512/HMAC/PBKDF2'); + static final _crypt = PassCrypt.pbkdf2(hmac: HmacHash.Sha_512); static final _rand = Random.secure(); /// Compute a hash for a password. diff --git a/server/pubspec.yaml b/server/pubspec.yaml index ffa7acc..5f71639 100644 --- a/server/pubspec.yaml +++ b/server/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: moor_ffi: ^0.5.0 musicus_database: path: ../database - steel_crypt: + steel_crypt: ^2.0.3 dev_dependencies: build_runner: