Skip to main content

rekey_with

Function rekey_with 

Source
pub fn rekey_with(
    db_path: &Path,
    salt_path: &Path,
    old_password: &str,
    new_password: &str,
    stop_after: Option<Stage>,
) -> Result<Report, String>
Expand description

Re-encrypts the vault under new_password. stop_after ends the run early with an error, which is what a crash at that point looks like; production callers pass None through rekey.