pad single digit hex character
This commit is contained in:
parent
089af4d943
commit
f7145d6e1f
|
@ -1,3 +1,4 @@
|
|||
#include <iomanip>
|
||||
#include "library.h"
|
||||
#include "ModuleWrapper.h"
|
||||
// signature offset
|
||||
|
@ -41,7 +42,7 @@ void main_thread() {
|
|||
|
||||
std::cout << "Secret key: ";
|
||||
for (auto i : secretKey) {
|
||||
std::cout << std::hex << (int)i;
|
||||
std::cout << std::setw(2) << std::setfill('0') << std::hex << (int)i;
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue