fix: 比较SHA1值时忽略大小写

This commit is contained in:
Yakumo Hokori 2025-07-15 17:54:25 +08:00
parent fbac16e351
commit 7c160e1704

View File

@ -35,7 +35,7 @@ fn main() -> io::Result<()> {
match cli.hash {
Some(hash_value) => {
if hex_result == hash_value {
if hex_result.to_lowercase() == hash_value.to_lowercase() {
println!("SHA1值匹配");
} else {
println!("SHA1值不匹配");