Skip to content

ROT47 cipher with extra features (custom ASCII range and rotation).

License

Notifications You must be signed in to change notification settings

Amarok24/RotEncode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RotEncode: an enhanced ROT cipher

ROT47 cipher with extra features (custom ASCII range and rotation), which allow some other cipher implementations, for example the Caesar cipher.

ROT cipher on Wikipedia

Caesar cipher on Wikipedia


Run the compiled jar program

In the /bin folder there is a jar file with compiled Java code. How to run the program:

java -jar RotEncoder.jar

If you get an error message (java not found) it means you don't have the Java Runtime Environment (JRE) installed. In this case follow the instructions below.

The Java Runtime Environment (JRE) and Java Development Kit (JDK)

To run compiled Java code you only need the JRE. The JDK contains not only the JRE, but also tools and files for Java programmers.

GNU/Linux

In almost every GNU/Linux distribution there is an "openjdk" package available. Here is how to install it on Debian-based distros (you may need to change the JRE version number, I use 17 as an example).

sudo apt update
sudo apt install openjdk-17-jre

Here is also a brief article on how to install the whole Java Development Kit (JDK) on Debian and how to update the PATH variable: Link.

Windows and MacOS

On Windows and MacOS there are different ways, you will have to download an OpenJDK install package of your choice. There are several to choose from. Builds by Amazon, Oracle and Microsoft are 3 of the most known.

Ideas for further improvement

The RotEncode class should not work with built-in character table, but should implement its own table instead, with the possibility to pass a fully customised char table as an argument. This would allow the creation of many other ciphers (ROT13, ROT18 ...).

Another class could inherit the RotEncode class and enhance its features to produce more advanced ciphers like the Vigenere cipher.

A command line interface for the RotEncode class could be developed.

License

License: The Unlicense. For more information, please refer to http://unlicense.org (A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, and larger works may be distributed under different terms and without source code.)

About

ROT47 cipher with extra features (custom ASCII range and rotation).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages