This package was developed to solve to major problem of data theft from servers. It encrypts the data to unintelligible form which cannot be read without decrypting the text.
The package is still in development phase and for now it supports alphanumeric characters and basic symbols. We also added feature for encryption and decryption of a text file.
- Clone the repository or download the ZIP file and extract in a folder.
- Create a driver class file to use the HorseEncryption class from HorseEncryption package and use encrypt() and decrypt() method or you can use below code snippet to use the class.
import HorseEncryption.HorseEncryption;
public class HorseEncryptionDemo {
public static void main(String[] args) {
HorseEncryption horseEncryption = new HorseEncryption();
String encrypted_text = horseEncryption.encrypt("Hello World");
String decrypted_text = horseEncryption.decrypt(encrypted_text);
System.out.println("Encrypted Text: "+encrypted_text);
System.out.println("Decrypted Text: "+decrypted_text);
}
}