https://github.com/kingcitaldo125/rot13
ROT13 substitution cypher
https://github.com/kingcitaldo125/rot13
cryptography cypher encryption python
Last synced: 2 months ago
JSON representation
ROT13 substitution cypher
- Host: GitHub
- URL: https://github.com/kingcitaldo125/rot13
- Owner: Kingcitaldo125
- License: gpl-3.0
- Created: 2021-02-24T21:43:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T19:08:41.000Z (over 3 years ago)
- Last Synced: 2025-06-13T04:43:20.256Z (about 1 year ago)
- Topics: cryptography, cypher, encryption, python
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ROT13
## Description
From [Wikipedia](https://en.wikipedia.org/wiki/ROT13):
**ROT13** (**"rotate by 13 places"**, sometimes hyphenated **ROT-13**) is a simple letter [substitution cipher](https://en.wikipedia.org/wiki/Substitution_cipher) that replaces a letter with the 13th letter after it in the alphabet. ROT13 is a special case of the [Caesar cipher](https://en.wikipedia.org/wiki/Caesar_cipher) which was developed in ancient Rome.
This repo seeks to retain different programming language implementations of that cypher.
## Languages Supported
The following languages are currently being supported:
- **C++**(C++ 11)
- **Python**(Python 3)
## Usage
### C++
Simply run the `main.cpp` source file though a compiler that is C++11 compliant, then run the executable.
E.x:
**Linux**
```
g++ --std=c++11 -o out main.cpp
./out
```
**Windows**
I had used MSVC++ (Visual Studio 2017) to compile the source.
I have not tried compiling using MinGW.
For more information on Visual Studio, click this [link](https://visualstudio.microsoft.com/).
### Python
Simply open a terminal/command prompt window, and type the following:
`python main.py this is a test string`
The output should appear like the following:
```
Result: guvf vf n grfg fgevat
Original: this is a test string
```
## License
See the [LICENSE](https://github.com/Kingcitaldo125/ROT13/blob/main/LICENSE) file for details