From 29f4a67c1cf8cf5bb1dca9a922b9a02b6a56fb4e Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Sun, 10 Aug 2025 09:49:13 -0400 Subject: [PATCH] Version v0.2.11 - Automatic version increment --- otp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otp.c b/otp.c index fb7717d..a0cc5da 100644 --- a/otp.c +++ b/otp.c @@ -920,7 +920,7 @@ int encrypt_text(const char* pad_identifier) { } // Output in ASCII armor format - printf("\n-----BEGIN OTP MESSAGE-----\n"); + printf("\n\n-----BEGIN OTP MESSAGE-----\n"); printf("Version: %s\n", get_version()); printf("Pad-ChkSum: %s\n", chksum_hex); printf("Pad-Offset: %lu\n", current_offset); @@ -932,7 +932,7 @@ int encrypt_text(const char* pad_identifier) { printf("%.64s\n", base64_cipher + i); } - printf("-----END OTP MESSAGE-----\n\n"); + printf("-----END OTP MESSAGE-----\n\n\n"); // Cleanup free(pad_data); @@ -972,8 +972,8 @@ int decrypt_text(const char* pad_identifier) { if (!found_begin) continue; - if (strncmp(line, "Pad-ChkSum: ", 10) == 0) { - strncpy(stored_chksum, line + 10, 64); + if (strncmp(line, "Pad-ChkSum: ", 12) == 0) { + strncpy(stored_chksum, line + 12, 64); stored_chksum[64] = '\0'; } else if (strncmp(line, "Pad-Offset: ", 12) == 0) {