Compare commits

..

1 Commits

Author SHA1 Message Date
f3599fef37 Version v0.3.33 - Update readme.md some more 2025-12-18 10:20:36 -04:00
2 changed files with 34 additions and 21 deletions

View File

@@ -58,33 +58,36 @@ One-time pads can be trivially encrypted and decrypted using pencil and paper, m
### Download Pre-Built Binaries ### Download Pre-Built Binaries
**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.31/otp-v0.3.31-linux-x86_64)** **[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.32/otp-v0.3.32-linux-x86_64)**
**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.31/otp-v0.3.31-linux-arm64)** **[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.32/otp-v0.3.32-linux-arm64)**
After downloading: After downloading:
```bash ```bash
# Make executable and run # Make executable and rename for convenience
chmod +x otp-v0.3.31-linux-x86_64 chmod +x otp-v0.3.32-linux-x86_64
./otp-v0.3.31-linux-x86_64 mv otp-v0.3.32-linux-x86_64 otp
# Run it
./otp
``` ```
### First Steps ### First Steps
1. **Generate your first pad:** 1. **Generate your first pad:**
```bash ```bash
./otp-v0.3.31-linux-x86_64 generate 1GB ./otp generate 1GB
``` ```
2. **Encrypt a message:** 2. **Encrypt a message:**
```bash ```bash
./otp-v0.3.31-linux-x86_64 encrypt ./otp encrypt
# Follow the interactive prompts # Follow the interactive prompts
``` ```
3. **Decrypt a message:** 3. **Decrypt a message:**
```bash ```bash
./otp-v0.3.31-linux-x86_64 decrypt ./otp decrypt
# Paste the encrypted message # Paste the encrypted message
``` ```
@@ -121,28 +124,38 @@ After building, run with:
## Usage ## Usage
### Interactive Mode The OTP Cipher operates in two modes:
```bash
# If you downloaded the binary:
./otp-v0.3.31-linux-x86_64
# If you built from source: **Interactive Mode**: Run without arguments to access a menu-driven interface. Best for exploring features, managing pads, and performing operations step-by-step with prompts and guidance.
./build/otp-x86_64
**Command Line Mode**: Provide arguments to execute specific operations directly. Ideal for scripting, automation, and quick one-off tasks.
### Interactive Mode
Launch the menu-driven interface:
```bash
./otp
``` ```
Navigate through menus to generate pads, encrypt/decrypt messages, manage pads, and configure settings.
### Command Line Mode ### Command Line Mode
Execute operations directly with arguments:
```bash ```bash
# Generate a new pad # Generate a new pad
./otp-v0.3.31-linux-x86_64 generate 1GB ./otp generate 1GB
# Encrypt text (interactive input) # Encrypt text (will prompt for input)
./otp-v0.3.31-linux-x86_64 encrypt <pad_hash_or_prefix> ./otp encrypt <pad_hash_or_prefix>
# Decrypt message (interactive input) # Decrypt message (will prompt for input)
./otp-v0.3.31-linux-x86_64 decrypt <pad_hash_or_prefix> ./otp decrypt <pad_hash_or_prefix>
# List available pads # List available pads
./otp-v0.3.31-linux-x86_64 list ./otp list
``` ```
## Version System ## Version System

View File

@@ -23,7 +23,7 @@
#include <ctype.h> #include <ctype.h>
// Version - Updated automatically by build.sh // Version - Updated automatically by build.sh
#define OTP_VERSION "v0.3.31" #define OTP_VERSION "v0.3.32"
// Constants // Constants
#define MAX_INPUT_SIZE 4096 #define MAX_INPUT_SIZE 4096