diff --git a/lib/utils/crypto_util.dart b/lib/utils/crypto_util.dart index 9bd43381b..a3fc5bb5d 100644 --- a/lib/utils/crypto_util.dart +++ b/lib/utils/crypto_util.dart @@ -16,8 +16,8 @@ class CryptoUtil { } static Uint8List scrypt(Uint8List plainText, Uint8List salt) { - return steel.PassCrypt.scrypt() - .hashBytes(salt: salt, input: plainText, len: 32); + return steel.PassCryptRaw.scrypt() + .hash(salt: salt, plain: plainText, len: 32); } static Uint8List aesEncrypt( diff --git a/pubspec.lock b/pubspec.lock index ce695a638..69fb35aa6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -675,10 +675,10 @@ packages: steel_crypt: dependency: "direct main" description: - path: "thirdparty/steel_crypt" - relative: true - source: path - version: "2.2.2" + name: steel_crypt + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.2+1" stream_channel: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index fa2b74833..d4b780a92 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -65,8 +65,7 @@ dependencies: flutter_svg: ^0.18.1 crisp: ^0.1.3 uuid: 2.2.2 - steel_crypt: - path: thirdparty/steel_crypt + steel_crypt: ^2.2.2+1 dev_dependencies: flutter_test: diff --git a/thirdparty/steel_crypt b/thirdparty/steel_crypt deleted file mode 160000 index e3e3603b5..000000000 --- a/thirdparty/steel_crypt +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e3e3603b571e8b51a7166f2a7a48c11e0d0b1c7e