Encryption tools

Project · Challenges · 14/03/2015

encryptionhistoryceasarcipherdecryptencryptpolyalphabeticmonoalphabetic
Project

Description

This basic encryption package was made as a challenge to myself in the first year of studying at Keele University. At the time I was undertaking a cybercrime module where we learnt about various different encryption methods, both modern and ancient. This is where I got my idea to create an encryption package which used the various different methods from history.

The package is implemented in java and can be used by supplying the appropriate variables to the constructor, these are usually a key and a string to encrypt using the key. You can also decrypt the message by setting the text variable for the object to the encrypted string and running the decrypt method.

As this is a primitive set of encryption tools, they should not really be used for anything other than a learning tool!

Examples

Input

PolyAlphabetic poly = new PolyAlphabetic("key", "Hello World");
String encrypted = poly.encrypt();
System.out.println(encrypted);

poly.setText(encrypted);
String decrypted = poly.decrypt();
System.out.println(decrypted);

Output

mszmontfze
helloworld
links