Use existing raw API for steel crypt
This commit is contained in:
parent
dbdf8ac935
commit
db3869fa58
|
@ -16,8 +16,8 @@ class CryptoUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Uint8List scrypt(Uint8List plainText, Uint8List salt) {
|
static Uint8List scrypt(Uint8List plainText, Uint8List salt) {
|
||||||
return steel.PassCrypt.scrypt()
|
return steel.PassCryptRaw.scrypt()
|
||||||
.hashBytes(salt: salt, input: plainText, len: 32);
|
.hash(salt: salt, plain: plainText, len: 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Uint8List aesEncrypt(
|
static Uint8List aesEncrypt(
|
||||||
|
|
|
@ -675,10 +675,10 @@ packages:
|
||||||
steel_crypt:
|
steel_crypt:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "thirdparty/steel_crypt"
|
name: steel_crypt
|
||||||
relative: true
|
url: "https://pub.dartlang.org"
|
||||||
source: path
|
source: hosted
|
||||||
version: "2.2.2"
|
version: "2.2.2+1"
|
||||||
stream_channel:
|
stream_channel:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -65,8 +65,7 @@ dependencies:
|
||||||
flutter_svg: ^0.18.1
|
flutter_svg: ^0.18.1
|
||||||
crisp: ^0.1.3
|
crisp: ^0.1.3
|
||||||
uuid: 2.2.2
|
uuid: 2.2.2
|
||||||
steel_crypt:
|
steel_crypt: ^2.2.2+1
|
||||||
path: thirdparty/steel_crypt
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
1
thirdparty/steel_crypt
vendored
1
thirdparty/steel_crypt
vendored
|
@ -1 +0,0 @@
|
||||||
Subproject commit e3e3603b571e8b51a7166f2a7a48c11e0d0b1c7e
|
|
Loading…
Reference in a new issue