mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-07-05 22:51:41 +08:00
chore: 更新 Rust 和依赖的版本 (#718)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user