Skip to content

Commit

Permalink
Clean up some leftovers by key*
Browse files Browse the repository at this point in the history
  • Loading branch information
winexe0 committed Dec 27, 2022
1 parent d240abe commit 03b90aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// main.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#define VERSION "BlazeEncryptions v2.0.5"
#define VERSION "BlazeEncryptions v2.0.6"
#define USAGE "\
Usage: BlazeEncryptions [--old] [--new] [--encrypt] [--decrypt] [--keygen] [-h] [--help] [--version]\n\
Options: --old (Uses the older Encryption/Decryption method for compatibility with BlazeEncryptions v1.x and less secure) --new (Uses the Newer Encryption/Decryption method which is more secure but not compatible with v1.x) --encrypt (Encrypt a message) --decrypt (Decrypt a message) --help or -h (Prints this exact messaage) --version (Prints out the version of this Scalc binary)"
Usage: BlazeEncryptions [--old] [--new] [--encrypt] [--decrypt] [--keygen] [--keystats] [-h] [--help] [--version]\n\
Options: --old (Uses the older Encryption/Decryption method for compatibility with BlazeEncryptions v1.x and less secure)\n --new (Uses the Newer Encryption/Decryption method which is more secure but not compatible with v1.x)\n --keygen (Generate Encryption keys)\n --keystats (Shows statistics of an existing key)\n --encrypt (Encrypt a message)\n --decrypt (Decrypt a message)\n --help or -h (Prints this exact messaage)\n --version (Prints out the version of this version of BlazeEncryptions)\n"
#define COPYRIGHT "Copyright (c) 2022 winexe0 <[email protected]> Albert Nguyen <[email protected]>"
#include <iostream>
#include <string>
Expand All @@ -16,6 +16,7 @@ Options: --old (Uses the older Encryption/Decryption method for compatibility wi
#include "new/encrypt.h"
#include "new/decrypt.h"
#include "new/keygen.h"
#include "new/keyinfo.h"
#include "old/old.h"
#include "old/decrypt.h"
#include "old/encrypt.h"
Expand Down Expand Up @@ -69,6 +70,9 @@ int main(int argc, char** argv) {
if (arg == "--keygen") {
keygen();
}
if (arg == "--keystats") {
keyinfo();
}
else {
cout << VERSION << endl;
cout << "Invalid argument" << endl;
Expand Down
2 changes: 1 addition & 1 deletion src/new/new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using namespace std;
int New() {
int crypt;
cout << "What would you like to do\n1. Generate Encryption/Decryption Keys\n2. Encrypt\n3. Decrypt\n4. Analyze an existing key\n4. Quit The Program\nPlease type 1, 2, 3, or 4 and press enter." << endl;
cout << "What would you like to do\n1. Generate Encryption/Decryption Keys\n2. Encrypt\n3. Decrypt\n4. Analyze an existing key\n5. Quit The Program\nPlease type 1, 2, 3, or 4 and press enter." << endl;
cin >> crypt;
if (crypt == 1) {
keygen();
Expand Down

0 comments on commit 03b90aa

Please sign in to comment.