fix: 比较SHA1值时忽略大小写
This commit is contained in:
parent
fbac16e351
commit
7c160e1704
@ -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值不匹配");
|
||||
|
Loading…
x
Reference in New Issue
Block a user