Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 992b9349b3 | |||
| 1f4a1fb90f | |||
| c7fae1ad1d | |||
| 37bcb6a6d2 | |||
| 9ded0aed44 | |||
| 4442837ce8 | |||
| 31ee220558 | |||
| 0a25c13b65 | |||
| fd9d87c548 | |||
| c1aa29cd73 | |||
| 75e52d48dc |
255
otp.c
255
otp.c
@@ -39,15 +39,21 @@ static const int base64_decode_table[256] = {
|
|||||||
#define MAX_LINE_LENGTH 1024
|
#define MAX_LINE_LENGTH 1024
|
||||||
#define MAX_HASH_LENGTH 65
|
#define MAX_HASH_LENGTH 65
|
||||||
#define PROGRESS_UPDATE_INTERVAL (64 * 1024 * 1024) // 64MB intervals
|
#define PROGRESS_UPDATE_INTERVAL (64 * 1024 * 1024) // 64MB intervals
|
||||||
#define PADS_DIR "pads"
|
#define DEFAULT_PADS_DIR "pads"
|
||||||
#define FILES_DIR "files"
|
#define FILES_DIR "files"
|
||||||
#define MAX_ENTROPY_BUFFER 32768 // 32KB entropy buffer
|
#define MAX_ENTROPY_BUFFER 32768 // 32KB entropy buffer
|
||||||
|
|
||||||
|
// Global variable for current pads directory (can be local or OTP thumb drive)
|
||||||
|
static char current_pads_dir[512] = DEFAULT_PADS_DIR;
|
||||||
|
|
||||||
// Function prototypes
|
// Function prototypes
|
||||||
int main(int argc, char* argv[]);
|
int main(int argc, char* argv[]);
|
||||||
int interactive_mode(void);
|
int interactive_mode(void);
|
||||||
int command_line_mode(int argc, char* argv[]);
|
int command_line_mode(int argc, char* argv[]);
|
||||||
|
|
||||||
|
// OTP thumb drive detection function
|
||||||
|
int detect_otp_thumb_drive(char* otp_drive_path, size_t path_size);
|
||||||
|
|
||||||
// Editor and file manager functions
|
// Editor and file manager functions
|
||||||
char* get_preferred_editor(void);
|
char* get_preferred_editor(void);
|
||||||
char* get_preferred_file_manager(void);
|
char* get_preferred_file_manager(void);
|
||||||
@@ -103,9 +109,21 @@ int handle_file_encrypt(void);
|
|||||||
// Enhanced input functions
|
// Enhanced input functions
|
||||||
int get_filename_with_default(const char* prompt, const char* default_path, char* result, size_t result_size);
|
int get_filename_with_default(const char* prompt, const char* default_path, char* result, size_t result_size);
|
||||||
|
|
||||||
|
// Directory display functions
|
||||||
|
void get_directory_display(const char* file_path, char* result, size_t result_size);
|
||||||
|
|
||||||
void print_usage(const char* program_name);
|
void print_usage(const char* program_name);
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
// Check for OTP thumb drive on startup
|
||||||
|
char otp_drive_path[512];
|
||||||
|
if (detect_otp_thumb_drive(otp_drive_path, sizeof(otp_drive_path))) {
|
||||||
|
printf("Detected OTP thumb drive: %s\n", otp_drive_path);
|
||||||
|
printf("Using as default pads directory for this session.\n\n");
|
||||||
|
strncpy(current_pads_dir, otp_drive_path, sizeof(current_pads_dir) - 1);
|
||||||
|
current_pads_dir[sizeof(current_pads_dir) - 1] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
return interactive_mode();
|
return interactive_mode();
|
||||||
} else {
|
} else {
|
||||||
@@ -629,9 +647,9 @@ uint64_t parse_size_string(const char* size_str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
char* find_pad_by_prefix(const char* prefix) {
|
char* find_pad_by_prefix(const char* prefix) {
|
||||||
DIR* dir = opendir(PADS_DIR);
|
DIR* dir = opendir(current_pads_dir);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
printf("Error: Cannot open pads directory\n");
|
printf("Error: Cannot open pads directory %s\n", current_pads_dir);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -665,10 +683,9 @@ char* find_pad_by_prefix(const char* prefix) {
|
|||||||
int current = 0;
|
int current = 0;
|
||||||
rewinddir(dir);
|
rewinddir(dir);
|
||||||
while ((entry = readdir(dir)) != NULL) {
|
while ((entry = readdir(dir)) != NULL) {
|
||||||
// Skip . and .. entries, and only process .pad files
|
|
||||||
if (entry->d_name[0] == '.') continue;
|
if (entry->d_name[0] == '.') continue;
|
||||||
if (!strstr(entry->d_name, ".pad")) continue;
|
if (!strstr(entry->d_name, ".pad")) continue;
|
||||||
if (strlen(entry->d_name) != 68) continue; // 64 char chksum + ".pad"
|
if (strlen(entry->d_name) != 68) continue;
|
||||||
|
|
||||||
current++;
|
current++;
|
||||||
if (current == selection) {
|
if (current == selection) {
|
||||||
@@ -729,9 +746,9 @@ char* find_pad_by_prefix(const char* prefix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int list_available_pads(void) {
|
int list_available_pads(void) {
|
||||||
DIR* dir = opendir(PADS_DIR);
|
DIR* dir = opendir(current_pads_dir);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
printf("Error: Cannot open pads directory\n");
|
printf("Error: Cannot open pads directory %s\n", current_pads_dir);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -751,7 +768,7 @@ int list_available_pads(void) {
|
|||||||
|
|
||||||
// Get pad file size
|
// Get pad file size
|
||||||
char full_path[300]; // Increased buffer size to accommodate longer paths
|
char full_path[300]; // Increased buffer size to accommodate longer paths
|
||||||
snprintf(full_path, sizeof(full_path), "%s/%s", PADS_DIR, entry->d_name);
|
snprintf(full_path, sizeof(full_path), "%s/%s", current_pads_dir, entry->d_name);
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat(full_path, &st) == 0) {
|
if (stat(full_path, &st) == 0) {
|
||||||
// Get used bytes from state
|
// Get used bytes from state
|
||||||
@@ -2079,7 +2096,7 @@ int decrypt_ascii_file(const char* input_file, const char* output_file) {
|
|||||||
|
|
||||||
int read_state_offset(const char* pad_chksum, uint64_t* offset) {
|
int read_state_offset(const char* pad_chksum, uint64_t* offset) {
|
||||||
char state_filename[MAX_HASH_LENGTH + 20];
|
char state_filename[MAX_HASH_LENGTH + 20];
|
||||||
snprintf(state_filename, sizeof(state_filename), "%s/%s.state", PADS_DIR, pad_chksum);
|
snprintf(state_filename, sizeof(state_filename), "%s/%s.state", current_pads_dir, pad_chksum);
|
||||||
|
|
||||||
FILE* state_file = fopen(state_filename, "rb");
|
FILE* state_file = fopen(state_filename, "rb");
|
||||||
if (!state_file) {
|
if (!state_file) {
|
||||||
@@ -2099,7 +2116,7 @@ int read_state_offset(const char* pad_chksum, uint64_t* offset) {
|
|||||||
|
|
||||||
int write_state_offset(const char* pad_chksum, uint64_t offset) {
|
int write_state_offset(const char* pad_chksum, uint64_t offset) {
|
||||||
char state_filename[MAX_HASH_LENGTH + 20];
|
char state_filename[MAX_HASH_LENGTH + 20];
|
||||||
snprintf(state_filename, sizeof(state_filename), "%s/%s.state", PADS_DIR, pad_chksum);
|
snprintf(state_filename, sizeof(state_filename), "%s/%s.state", current_pads_dir, pad_chksum);
|
||||||
|
|
||||||
FILE* state_file = fopen(state_filename, "wb");
|
FILE* state_file = fopen(state_filename, "wb");
|
||||||
if (!state_file) {
|
if (!state_file) {
|
||||||
@@ -2240,8 +2257,8 @@ int collect_keyboard_entropy(unsigned char* entropy_buffer, size_t max_size, siz
|
|||||||
// Directory management functions
|
// Directory management functions
|
||||||
int ensure_pads_directory(void) {
|
int ensure_pads_directory(void) {
|
||||||
struct stat st = {0};
|
struct stat st = {0};
|
||||||
if (stat(PADS_DIR, &st) == -1) {
|
if (stat(current_pads_dir, &st) == -1) {
|
||||||
if (mkdir(PADS_DIR, 0755) != 0) {
|
if (mkdir(current_pads_dir, 0755) != 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2272,10 +2289,74 @@ void get_default_file_path(const char* filename, char* result_path, size_t resul
|
|||||||
}
|
}
|
||||||
|
|
||||||
void get_pad_path(const char* chksum, char* pad_path, char* state_path) {
|
void get_pad_path(const char* chksum, char* pad_path, char* state_path) {
|
||||||
snprintf(pad_path, MAX_HASH_LENGTH + 20, "%s/%s.pad", PADS_DIR, chksum);
|
snprintf(pad_path, MAX_HASH_LENGTH + 20, "%s/%s.pad", current_pads_dir, chksum);
|
||||||
snprintf(state_path, MAX_HASH_LENGTH + 20, "%s/%s.state", PADS_DIR, chksum);
|
snprintf(state_path, MAX_HASH_LENGTH + 20, "%s/%s.state", current_pads_dir, chksum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OTP thumb drive detection function implementation
|
||||||
|
int detect_otp_thumb_drive(char* otp_drive_path, size_t path_size) {
|
||||||
|
const char* mount_dirs[] = {"/media", "/run/media", "/mnt", NULL};
|
||||||
|
|
||||||
|
for (int mount_idx = 0; mount_dirs[mount_idx] != NULL; mount_idx++) {
|
||||||
|
DIR* mount_dir = opendir(mount_dirs[mount_idx]);
|
||||||
|
if (!mount_dir) continue;
|
||||||
|
|
||||||
|
struct dirent* mount_entry;
|
||||||
|
while ((mount_entry = readdir(mount_dir)) != NULL) {
|
||||||
|
if (mount_entry->d_name[0] == '.') continue;
|
||||||
|
|
||||||
|
// Check if drive name starts with "OTP"
|
||||||
|
if (strncmp(mount_entry->d_name, "OTP", 3) != 0) continue;
|
||||||
|
|
||||||
|
char mount_path[512];
|
||||||
|
snprintf(mount_path, sizeof(mount_path), "%s/%s", mount_dirs[mount_idx], mount_entry->d_name);
|
||||||
|
|
||||||
|
// For /run/media, we need to go one level deeper (skip username)
|
||||||
|
if (strcmp(mount_dirs[mount_idx], "/run/media") == 0) {
|
||||||
|
DIR* user_dir = opendir(mount_path);
|
||||||
|
if (!user_dir) continue;
|
||||||
|
|
||||||
|
struct dirent* user_entry;
|
||||||
|
while ((user_entry = readdir(user_dir)) != NULL) {
|
||||||
|
if (user_entry->d_name[0] == '.') continue;
|
||||||
|
|
||||||
|
// Check if drive name starts with "OTP"
|
||||||
|
if (strncmp(user_entry->d_name, "OTP", 3) != 0) continue;
|
||||||
|
|
||||||
|
char user_mount_path[512];
|
||||||
|
snprintf(user_mount_path, sizeof(user_mount_path), "%s/%s", mount_path, user_entry->d_name);
|
||||||
|
|
||||||
|
// Check if this is a readable directory
|
||||||
|
DIR* drive_dir = opendir(user_mount_path);
|
||||||
|
if (drive_dir) {
|
||||||
|
closedir(drive_dir);
|
||||||
|
strncpy(otp_drive_path, user_mount_path, path_size - 1);
|
||||||
|
otp_drive_path[path_size - 1] = '\0';
|
||||||
|
closedir(user_dir);
|
||||||
|
closedir(mount_dir);
|
||||||
|
return 1; // Found OTP drive
|
||||||
|
}
|
||||||
|
}
|
||||||
|
closedir(user_dir);
|
||||||
|
} else {
|
||||||
|
// Direct mount point (like /media/OTP_DRIVE or /mnt/OTP_DRIVE)
|
||||||
|
DIR* drive_dir = opendir(mount_path);
|
||||||
|
if (drive_dir) {
|
||||||
|
closedir(drive_dir);
|
||||||
|
strncpy(otp_drive_path, mount_path, path_size - 1);
|
||||||
|
otp_drive_path[path_size - 1] = '\0';
|
||||||
|
closedir(mount_dir);
|
||||||
|
return 1; // Found OTP drive
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
closedir(mount_dir);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0; // No OTP drive found
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Custom base64 encode function
|
// Custom base64 encode function
|
||||||
@@ -2829,10 +2910,10 @@ int handle_file_encrypt(void) {
|
|||||||
int handle_pads_menu(void) {
|
int handle_pads_menu(void) {
|
||||||
printf("\n=== Pad Management ===\n");
|
printf("\n=== Pad Management ===\n");
|
||||||
|
|
||||||
// Get list of all pads
|
// Get list of pads from current directory
|
||||||
DIR* dir = opendir(PADS_DIR);
|
DIR* dir = opendir(current_pads_dir);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
printf("Error: Cannot open pads directory\n");
|
printf("Error: Cannot open pads directory %s\n", current_pads_dir);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2842,6 +2923,7 @@ int handle_pads_menu(void) {
|
|||||||
char size_str[32];
|
char size_str[32];
|
||||||
char used_str[32];
|
char used_str[32];
|
||||||
double percentage;
|
double percentage;
|
||||||
|
char location[256]; // Store location info
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PadInfo pads[100]; // Support up to 100 pads
|
struct PadInfo pads[100]; // Support up to 100 pads
|
||||||
@@ -2855,8 +2937,8 @@ int handle_pads_menu(void) {
|
|||||||
pads[pad_count].chksum[64] = '\0';
|
pads[pad_count].chksum[64] = '\0';
|
||||||
|
|
||||||
// Get pad file size and usage info
|
// Get pad file size and usage info
|
||||||
char full_path[300];
|
char full_path[512];
|
||||||
snprintf(full_path, sizeof(full_path), "%s/%s", PADS_DIR, entry->d_name);
|
snprintf(full_path, sizeof(full_path), "%s/%s", current_pads_dir, entry->d_name);
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat(full_path, &st) == 0) {
|
if (stat(full_path, &st) == 0) {
|
||||||
// Get used bytes from state
|
// Get used bytes from state
|
||||||
@@ -2888,6 +2970,9 @@ int handle_pads_menu(void) {
|
|||||||
// Calculate percentage
|
// Calculate percentage
|
||||||
pads[pad_count].percentage = (double)used_bytes / st.st_size * 100.0;
|
pads[pad_count].percentage = (double)used_bytes / st.st_size * 100.0;
|
||||||
|
|
||||||
|
// Set location info using directory display
|
||||||
|
get_directory_display(full_path, pads[pad_count].location, sizeof(pads[pad_count].location));
|
||||||
|
|
||||||
pad_count++;
|
pad_count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2943,14 +3028,19 @@ int handle_pads_menu(void) {
|
|||||||
|
|
||||||
// Display pads with minimal prefixes underlined
|
// Display pads with minimal prefixes underlined
|
||||||
printf("\nAvailable pads:\n");
|
printf("\nAvailable pads:\n");
|
||||||
printf("%-20s %-12s %-12s %-8s\n", "ChkSum", "Size", "Used", "% Used");
|
printf("%-8s %-12s %-12s %-12s %-8s\n", "ChkSum", "Dir", "Size", "Used", "% Used");
|
||||||
printf("%-20s %-12s %-12s %-8s\n", "-------------------", "----------", "----------", "------");
|
printf("%-8s %-12s %-12s %-12s %-8s\n", "--------", "------------", "----------", "----------", "------");
|
||||||
|
|
||||||
for (int i = 0; i < pad_count; i++) {
|
for (int i = 0; i < pad_count; i++) {
|
||||||
// Display checksum with prefix underlined
|
// Display first 8 characters of checksum with prefix underlined
|
||||||
printf("\033[4m%.*s\033[0m%-*s %-12s %-12s %.1f%%\n",
|
char checksum_8char[9];
|
||||||
prefix_lengths[i], pads[i].chksum, // Underlined prefix
|
strncpy(checksum_8char, pads[i].chksum, 8);
|
||||||
20 - prefix_lengths[i], pads[i].chksum + prefix_lengths[i], // Rest of checksum with padding
|
checksum_8char[8] = '\0';
|
||||||
|
|
||||||
|
printf("\033[4m%.*s\033[0m%s %-12s %-12s %-12s %.1f%%\n",
|
||||||
|
prefix_lengths[i], checksum_8char, // Underlined prefix
|
||||||
|
checksum_8char + prefix_lengths[i], // Rest of 8-char checksum
|
||||||
|
pads[i].location, // Use the stored location info
|
||||||
pads[i].size_str,
|
pads[i].size_str,
|
||||||
pads[i].used_str,
|
pads[i].used_str,
|
||||||
pads[i].percentage);
|
pads[i].percentage);
|
||||||
@@ -3019,6 +3109,121 @@ int handle_pads_menu(void) {
|
|||||||
return handle_pads_menu();
|
return handle_pads_menu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void get_directory_display(const char* file_path, char* result, size_t result_size) {
|
||||||
|
// Extract directory path from full file path
|
||||||
|
char dir_path[512];
|
||||||
|
char* last_slash = strrchr(file_path, '/');
|
||||||
|
|
||||||
|
if (last_slash) {
|
||||||
|
size_t dir_len = last_slash - file_path;
|
||||||
|
if (dir_len >= sizeof(dir_path)) {
|
||||||
|
dir_len = sizeof(dir_path) - 1;
|
||||||
|
}
|
||||||
|
strncpy(dir_path, file_path, dir_len);
|
||||||
|
dir_path[dir_len] = '\0';
|
||||||
|
} else {
|
||||||
|
// No directory separator, assume current directory
|
||||||
|
strcpy(dir_path, ".");
|
||||||
|
}
|
||||||
|
|
||||||
|
// USB Drive Detection and Smart Shortening
|
||||||
|
char* home_dir = getenv("HOME");
|
||||||
|
|
||||||
|
// Check for USB/removable media mount patterns
|
||||||
|
if (strstr(dir_path, "/media/") || strstr(dir_path, "/run/media/") || strstr(dir_path, "/mnt/")) {
|
||||||
|
// Extract USB label/name
|
||||||
|
char* media_start = NULL;
|
||||||
|
if (strstr(dir_path, "/media/")) {
|
||||||
|
media_start = strstr(dir_path, "/media/");
|
||||||
|
} else if (strstr(dir_path, "/run/media/")) {
|
||||||
|
media_start = strstr(dir_path, "/run/media/");
|
||||||
|
} else if (strstr(dir_path, "/mnt/")) {
|
||||||
|
media_start = strstr(dir_path, "/mnt/");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (media_start) {
|
||||||
|
// Find the USB label part
|
||||||
|
char* path_after_media = strchr(media_start + 1, '/');
|
||||||
|
if (path_after_media) {
|
||||||
|
path_after_media++; // Skip the slash
|
||||||
|
|
||||||
|
// For /run/media/user/LABEL pattern, skip the username
|
||||||
|
if (strstr(media_start, "/run/media/")) {
|
||||||
|
char* next_slash = strchr(path_after_media, '/');
|
||||||
|
if (next_slash) {
|
||||||
|
path_after_media = next_slash + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extract just the USB label (up to next slash or end)
|
||||||
|
char* label_end = strchr(path_after_media, '/');
|
||||||
|
if (label_end) {
|
||||||
|
size_t label_len = label_end - path_after_media;
|
||||||
|
if (label_len > 11) label_len = 11; // Max 11 chars for display
|
||||||
|
strncpy(result, path_after_media, label_len);
|
||||||
|
result[label_len] = '\0';
|
||||||
|
} else {
|
||||||
|
// USB label is the last part
|
||||||
|
strncpy(result, path_after_media, result_size - 1);
|
||||||
|
result[result_size - 1] = '\0';
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Home directory shortening
|
||||||
|
if (home_dir && strncmp(dir_path, home_dir, strlen(home_dir)) == 0) {
|
||||||
|
if (dir_path[strlen(home_dir)] == '/' || dir_path[strlen(home_dir)] == '\0') {
|
||||||
|
// Replace home directory with ~
|
||||||
|
char temp[512];
|
||||||
|
snprintf(temp, sizeof(temp), "~%s", dir_path + strlen(home_dir));
|
||||||
|
|
||||||
|
// If result is too long, truncate intelligently
|
||||||
|
if (strlen(temp) > 11) {
|
||||||
|
// Show ~/...end_part
|
||||||
|
char* last_part = strrchr(temp, '/');
|
||||||
|
if (last_part && strlen(last_part) < 8) {
|
||||||
|
snprintf(result, result_size, "~...%s", last_part);
|
||||||
|
} else {
|
||||||
|
strncpy(result, temp, 11);
|
||||||
|
result[11] = '\0';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
strncpy(result, temp, result_size - 1);
|
||||||
|
result[result_size - 1] = '\0';
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Current working directory
|
||||||
|
if (strcmp(dir_path, ".") == 0 || strcmp(dir_path, PADS_DIR) == 0) {
|
||||||
|
strncpy(result, "pads", result_size - 1);
|
||||||
|
result[result_size - 1] = '\0';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// System/other paths - smart truncation with ellipsis
|
||||||
|
if (strlen(dir_path) > 11) {
|
||||||
|
// Try to show the most meaningful part
|
||||||
|
char* last_part = strrchr(dir_path, '/');
|
||||||
|
if (last_part && strlen(last_part) < 9) {
|
||||||
|
// Show .../last_part
|
||||||
|
snprintf(result, result_size, "...%s", last_part);
|
||||||
|
} else {
|
||||||
|
// Show first part with ellipsis
|
||||||
|
strncpy(result, dir_path, 8);
|
||||||
|
strncpy(result + 8, "...", result_size - 8 - 1);
|
||||||
|
result[result_size - 1] = '\0';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Short enough, use as-is
|
||||||
|
strncpy(result, dir_path, result_size - 1);
|
||||||
|
result[result_size - 1] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void print_usage(const char* program_name) {
|
void print_usage(const char* program_name) {
|
||||||
printf("OTP Cipher - One Time Pad Implementation %s\n", get_version());
|
printf("OTP Cipher - One Time Pad Implementation %s\n", get_version());
|
||||||
printf("%s\n", get_build_info());
|
printf("%s\n", get_build_info());
|
||||||
|
|||||||
Reference in New Issue
Block a user