Skip to content

Instantly share code, notes, and snippets.

@weiwill
weiwill / KeypairVault.rs
Created October 10, 2025 15:17 — forked from YukiCoco/KeypairVault.rs
安全在服务器储存敏感内容的算法,使用 Argon2 + AES 加密
use std::fs;
use std::path::Path;
use argon2::{
password_hash::{
rand_core::OsRng,
PasswordHasher, SaltString
},
Argon2
};
use aes_gcm::{