pad single digit hex character

This commit is contained in:
luna 2022-09-15 01:07:17 +01:00
parent 089af4d943
commit f7145d6e1f
No known key found for this signature in database
GPG Key ID: 64C3041E2013E606
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}