// Temporary password reset utility
// Usage: cargo run --manifest-path scripts/Cargo.toml --bin reset-admin-password

use argon2::{
    password_hash::{PasswordHasher, SaltString},
    Argon2, Algorithm, Version, Params,
};
use rand_core::OsRng;

fn main() {
    let password = "AdminGuruConnect2026"; // Temporary password (no special chars)

    let argon2 = Argon2::new(
        Algorithm::Argon2id,
        Version::V0x13,
        Params::default(),
    );

    let salt = SaltString::generate(&mut OsRng);
    let password_hash = argon2
        .hash_password(password.as_bytes(), &salt)
        .expect("Failed to hash password")
        .to_string();

    println!("Password: {}", password);
    println!("Hash: {}", password_hash);
}
