Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EncryptDecrypt Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James2.Hoole-Jackson@live.uwe.ac.uk
EncryptDecrypt Tool
Commits
69a6dcbb
Commit
69a6dcbb
authored
2 months ago
by
James2.Hoole-Jackson@live.uwe.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
dd272bd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+48
-4
48 additions, 4 deletions
README.md
with
48 additions
and
4 deletions
README.md
+
48
−
4
View file @
69a6dcbb
#EncryptDecrypt
##James Hoole-Jackson
##24026875
------
#EncryptDecrypt Tool
This tool lets you both encrypt and decrypt files using three different ciphers:
-
Caesar Cipher
-
XOR Cipher
-
Vigenere Cipher
You run this tool in the terminal, choose which cipher you want, the program will ask you for a file and a key that you wish to use.
---
## Compiling
Open the terminal and type:
g++ main.cpp EncryptDecrypt.cpp Help.cpp -o EncryptDecrypt
This create a file called EncryptDecryptTool that you can run.
---
## Running the tool
In the terminal, use this format to run the tool
./EncryptDecrypt
[
encrypt/decrypt
][
cipher
][
filename
][
key
]
### Ciphers supported:
-
`caesar`
— requires a
**number**
key (e.g.
`3`
)
-
`xor`
— requires a
**single character**
key (e.g.
`X`
)
-
`vigenere`
— requires a
**word**
or
**string**
key (e.g.
`Secret`
)
---
### Examples
'''C++
# Caesar encryption with the shift 16
./EncryptDecrypt encrypt caesar file.txt 16
# XOR decryption with key X
./EncryptDecrypt decrypt XOR file.txt X
# Vigenere encryption with the key SecretKey1234
./EncryptDecrypt encrypt vigenere file.txt SecretKey1234
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment