Compare commits

...
13 Commits
Author SHA1 Message Date
laantungir 7e50727163 Version v0.2.29 - implemented enhanced filename input with directory/filename separation 2025-08-13 10:47:08 -04:00
laantungir f118c23c60 Version v0.2.28 - fixed format truncation warnings by increasing buffer size 2025-08-13 10:40:45 -04:00
laantungir b149175f24 Version v0.2.26 - clean build 2025-08-13 10:35:55 -04:00
laantungir 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
laantungir 2a5249d93c Version v0.2.24 - Added 'q' as additional exit key alongside 'x' 2025-08-13 10:27:37 -04:00
laantungir 0e02eaee53 Version v0.2.23 - Restructured menu system with streamlined text/file encrypt and smart decrypt 2025-08-13 10:24:50 -04:00
laantungir e32eb8b2b1 Version v0.2.22 - Added text editor and file manager integration 2025-08-13 10:08:38 -04:00
laantungir 0aecae0c5e test files 2025-08-12 19:08:14 -04:00
laantungir fa90e0eafd Version v0.2.21 - Implement interactive file encryption and decryption in menu system 2025-08-11 06:03:05 -04:00
laantungir 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
laantungir 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
laantungir 0cdf6e7804 Version v0.2.18 - Remove original filename from binary .otp file format - simplify file structure 2025-08-10 15:05:36 -04:00
laantungir 268758a21b Version v0.2.17 - Fix pad selection logic - allow flexible hex prefix matching instead of restrictive number selection 2025-08-10 14:57:51 -04:00
12 changed files with 9644 additions and 110 deletions
+7
View File
@@ -0,0 +1,7 @@
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.
+4 -6
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
Executable
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
int main() { printf("Testing direct filename: %d\n", strncmp("97d9d82b5414a9439102f3811fb90ab1d6368a00d33229a18b306476f9d04f82.pad", "97", 2)); return 0; }
+725 -95
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
-1
View File
@@ -1 +0,0 @@
This is a test file for OTP encryption.
BIN
View File
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
This is a test file for OTP encryption.
-7
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
View File
@@ -0,0 +1 @@
Hello, this is a test file for encryption!
Executable
+8898
View File
File diff suppressed because it is too large Load Diff