diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-11-12 20:36:57 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-11-12 20:36:57 -0500 |
commit | eaf6f88292323f4707cc3daf4a4df8ebb2adc10e (patch) | |
tree | 2d43976e05ce0849545c346cd5991e6346e8eb42 /deonebook.c | |
parent | 6db00b76383a273ed7e8eb55d88829f67c5da89b (diff) |
output in hex for easier openssl copy and paste
Diffstat (limited to 'deonebook.c')
-rw-r--r-- | deonebook.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |