pkstrings: convert: change output format

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-11-15 18:41:14 +01:00
parent 6e32a71c0e
commit 891f05c271
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -30,7 +30,7 @@ fn main() {
if args.len() == 2 {
// Convert String to PKString and then to Vec<u8>
let tmp: Vec<u8> = PKString::try_from(args[1].as_str()).unwrap().into();
println!("{:#02x?}", tmp);
println!("{:02x?}", tmp);
} else if args.len() == 3 && args[1] == String::from("rev") {
// Consure chars 2 by 2 and convert to u8.
let mut vec: Vec<u8> = vec![];