diff --git a/ato-cli/Cargo.toml b/ato-cli/Cargo.toml index 5bee839..5ebdf12 100644 --- a/ato-cli/Cargo.toml +++ b/ato-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ato-cli" -version = "1.2.2" +version = "1.2.3" edition = "2021" [dependencies] diff --git a/ato/src/mesh/data.rs b/ato/src/mesh/data.rs index 89cdf2a..dde6cf6 100644 --- a/ato/src/mesh/data.rs +++ b/ato/src/mesh/data.rs @@ -42,6 +42,6 @@ impl Data { let lh: u128 = u128::from_str_radix(&_lh, 16).unwrap(); let rh: u128 = u128::from_str_radix(&_rh, 16).unwrap(); - format!("{:x}", lh+rh) + format!("{:032x}", lh+rh) } } \ No newline at end of file diff --git a/mdsum.py b/mdsum.py new file mode 100644 index 0000000..c7fecdf --- /dev/null +++ b/mdsum.py @@ -0,0 +1,10 @@ +x1 = "8dcbafa1779616565ad430bc834b9389" +x2 = "7b2d78d14c26df82827bd98d057a78cd" +val = "08f92872c3bcf5d8dd500a4988c60c56" + +c1 = int(x1, 16) +c2 = int(x2, 16) +c = (c1 + c2) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF + +z = format(c, '032x') +print(z) \ No newline at end of file