Use existing raw API for steel crypt

This commit is contained in:
Vishnu Mohandas 2020-09-10 03:00:04 +05:30
parent dbdf8ac935
commit db3869fa58
4 changed files with 7 additions and 9 deletions

View file

@ -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(

View file

@ -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:

View file

@ -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:

@ -1 +0,0 @@
Subproject commit e3e3603b571e8b51a7166f2a7a48c11e0d0b1c7e