Compare commits

...

15 Commits

Author SHA1 Message Date
83b60b5cc2 Version v0.2.33 - implemented enhanced interactive filename editing for decrypt file functionality with smart defaults 2025-08-13 11:37:41 -04:00
2d6546ab83 Version v0.2.32 - implemented enhanced interactive filename editing for decrypt functionality 2025-08-13 11:30:29 -04:00
c255185084 Version v0.2.31 - fixed signed/unsigned comparison warning in enhanced input function 2025-08-13 11:11:08 -04:00
24800d69d5 Version v0.2.30 - implemented advanced interactive filename editing with cursor control and pre-filled text 2025-08-13 11:10:43 -04:00
7e50727163 Version v0.2.29 - implemented enhanced filename input with directory/filename separation 2025-08-13 10:47:08 -04:00
f118c23c60 Version v0.2.28 - fixed format truncation warnings by increasing buffer size 2025-08-13 10:40:45 -04:00
b149175f24 Version v0.2.26 - clean build 2025-08-13 10:35:55 -04:00
206e8042d8 Version v0.2.25 - Added default output filename prompt with pre-filled value for file encryption 2025-08-13 10:31:24 -04:00
2a5249d93c Version v0.2.24 - Added 'q' as additional exit key alongside 'x' 2025-08-13 10:27:37 -04:00
0e02eaee53 Version v0.2.23 - Restructured menu system with streamlined text/file encrypt and smart decrypt 2025-08-13 10:24:50 -04:00
e32eb8b2b1 Version v0.2.22 - Added text editor and file manager integration 2025-08-13 10:08:38 -04:00
0aecae0c5e test files 2025-08-12 19:08:14 -04:00
fa90e0eafd Version v0.2.21 - Implement interactive file encryption and decryption in menu system 2025-08-11 06:03:05 -04:00
2a10d974b2 Version v0.2.20 - Add comprehensive help flag support and fix pad selection to prioritize hex prefix matching over number selection 2025-08-10 15:22:15 -04:00
7e04896394 Version v0.2.19 - Update README to reflect removal of original filename from binary .otp format 2025-08-10 15:17:33 -04:00
15 changed files with 9785 additions and 78 deletions

View File

@@ -2,3 +2,6 @@
When building, use build.sh, not make.
Use it as follows: build.sh -m "useful comment on changes being made"
When making TUI menus, try to use the first leter of the command and the key to press to execute that command. For example, if the command is "Open file" try to use a keypress of "o" upper or lower case to signal to open the file. Use this instead of number keyed menus when possible. In the command, the letter should be underlined that signifies the command.

View File

@@ -164,11 +164,9 @@ Offset | Size | Field | Description
4 | 2 | Version | Format version (currently 1)
6 | 32 | Pad Checksum | Binary pad checksum (32 bytes)
38 | 8 | Pad Offset | Offset in pad file (uint64_t)
46 | 2 | Filename Length | Original filename length (uint16_t)
48 | var | Original Filename | Original filename string
var | 4 | File Mode | Original file permissions (uint32_t)
var | 8 | File Size | Original file size (uint64_t)
var | var | Encrypted Data | XOR-encrypted file contents
46 | 4 | File Mode | Original file permissions (uint32_t)
50 | 8 | File Size | Original file size (uint64_t)
58 | var | Encrypted Data | XOR-encrypted file contents
```
### .otp.asc File Format (ASCII Armored)
@@ -185,7 +183,7 @@ Pad-Offset: <decimal-offset-value>
-----END OTP MESSAGE-----
```
**Note:** ASCII armored files lose original filename and permission metadata.
**Note:** ASCII armored files do not preserve original file permissions metadata.
## Usage Examples

1
decrypted.bin Normal file
View File

@@ -0,0 +1 @@
Hello, this is a test file for encryption!

919
otp.c

File diff suppressed because it is too large Load Diff

8
otp.code-workspace Normal file
View File

@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

BIN
output.otp Normal file

Binary file not shown.

View File

@@ -1 +0,0 @@
This is a test file for OTP encryption.

Binary file not shown.

View File

@@ -1 +0,0 @@
This is a test file for OTP encryption.

View File

@@ -1,7 +0,0 @@
-----BEGIN OTP MESSAGE-----
Version: v0.2.15
Pad-ChkSum: 0c8e19fde996e683fdbd348d1052eec168ffe6f67a88bb1278d0d02e9341b87b
Pad-Offset: 210
mMIm7iVtUO6NbXbskMxtydI/A16UXEQUGTcIya/8Dja6PB3EC0MLdw==
-----END OTP MESSAGE-----

1
test_file.txt Normal file
View File

@@ -0,0 +1 @@
Hello, this is a test file for encryption!

7
test_file.txt.otp.asc Normal file
View File

@@ -0,0 +1,7 @@
-----BEGIN OTP MESSAGE-----
Version: v0.2.29
Pad-ChkSum: d0d4a489354348b08d8c7b324814d8c50010042e9da47f2c973f32a16a09101b
Pad-Offset: 57
05S8GfS0tFfczNMUz0xrieFGoPSREM4uo5QhFGoBCcOzjfTXTDMt3hRtAQ==
-----END OTP MESSAGE-----

1
test_input.txt Normal file
View File

@@ -0,0 +1 @@
This is a test file for encryption.

8898
toc.txt Executable file

File diff suppressed because it is too large Load Diff

BIN
toc.txt.otp Normal file

Binary file not shown.