sendcipher-core 0.1.3

Core library for encrypted file sharing at sendcipher.com
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Created on 2025.11.22 */
/* Copyright (c) 2025-2026 Youcef Lemsafer */
/* SPDX-License-Identifier: MIT */


use crate::crypto::{Argon2idParams, random};

   
/// Creates UNSECURE parameters for fast tests
pub fn create_argon2id_params_for_tests() -> Argon2idParams {
    Argon2idParams {
        m_cost: 512u32, // 50MB/100 i.e. hundred times less than value used in production
        t_cost: 1,
        p_cost: 1,
        salt: random::get_rand_bytes(32).expect("Generation of random bytes should succeed"),
    }
}