mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 08:42:20 +08:00
Update dependencies
This commit is contained in:
@@ -4,7 +4,7 @@ use std::collections::HashMap;
|
||||
use sha1::Sha1;
|
||||
use substring::Substring;
|
||||
use jzon::{object, JsonValue};
|
||||
use hmac::{Hmac, Mac};
|
||||
use hmac::{Hmac, Mac, KeyInit};
|
||||
use rusqlite::params;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ fn _a_sha1(t: &str) -> String {
|
||||
let mut hasher = Sha1::new();
|
||||
hasher.update(t.as_bytes());
|
||||
let result = hasher.finalize();
|
||||
format!("{:X}", result)
|
||||
hex::encode_upper(result)
|
||||
}
|
||||
|
||||
fn generate_passcode_sha1(transfer_id: String, transfer_code: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user