From eaf6f88292323f4707cc3daf4a4df8ebb2adc10e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 12 Nov 2020 20:36:57 -0500 Subject: output in hex for easier openssl copy and paste --- deonebook.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deonebook.c b/deonebook.c index 075f505..b4300dc 100644 --- a/deonebook.c +++ b/deonebook.c @@ -43,7 +43,11 @@ int main(int argc, char *argv[]) return 1; } - fwrite(key, 16, 1, stdout); + for (int i = 0; i < KEY_SIZE; i++) { + printf("%02hhx", key[i]); + } + printf("\n"); + return 0; } -- cgit v1.2.1