chore: 更新 rust 依赖 (#391)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-07-11 20:44:38 +08:00
committed by GitHub
parent 2837bb5234
commit c8f7a2267d
4 changed files with 354 additions and 222 deletions

View File

@@ -100,7 +100,7 @@ JNrRuoEUXpabUzGB8QIDAQAB
.expect("fail to decode public key");
let ts = chrono::Local::now().timestamp_millis();
let data = format!("refresh_{}", ts).into_bytes();
let mut rng = rand::rngs::OsRng;
let mut rng = rand::rng();
let encrypted = key
.encrypt(&mut rng, Oaep::new::<Sha256>(), &data)
.expect("fail to encrypt");