chore: 更新 Rust 和依赖的版本 (#718)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2026-06-08 16:53:19 +08:00
committed by GitHub
parent 791dd57f23
commit 6d8bf14880
4 changed files with 859 additions and 716 deletions

View File

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