stronger argon parameters for wallet creation

Niko PLP 1 year ago
parent 3c5137bcff
commit 3169a40c60
  1. BIN
      ng-app/dist-file.tar.gz
  2. 4
      ng-wallet/src/lib.rs

Binary file not shown.

@ -195,8 +195,8 @@ pub fn dec_encrypted_block(
pub fn derive_key_from_pass(mut pass: Vec<u8>, salt: [u8; 16], wallet_id: WalletId) -> [u8; 32] {
let params = ParamsBuilder::new()
.m_cost(50 * 1024)
.t_cost(2)
.m_cost(10 * 1024)
.t_cost(12)
.p_cost(1)
.data(AssociatedData::new(wallet_id.slice()).unwrap())
.output_len(32)

Loading…
Cancel
Save