corrected error with salt secret

This commit is contained in:
Tanner Silva 2020-10-19 11:17:21 -05:00
parent ad695db5f6
commit ca5b4c7cc7

View file

@ -349,8 +349,8 @@ Future<void> ios_migrate_trades_list(Box<Trade> tradeSource) async {
final masterPassword = await flutterSecureStorage.read(
key: 'master_password', iOptions: IOSOptions(syncFlag: "syna"));
final key = masterPassword.replaceAll('-', '');
final decoded = await ios_legacy_helper.decrypt(content,
key: key, salt: secrets.keychainSalt);
final decoded =
await ios_legacy_helper.decrypt(content, key: key, salt: secrets.salt);
final decodedJson = json.decode(decoded) as List<dynamic>;
final trades = decodedJson.map((dynamic el) {
final elAsMap = el as Map<String, dynamic>;