Encryption Decryption (Java) Project from https://hyperskill.org.
This is a little encryption/decryption program.
data(optional) [string] - message to be processed by the program. Whendataandinaren't defined, promps the user to enterdataandkeyparameters.key[integer] - gives the key to be used by the encryption algorithm. Required wheninparameter it's defined.alg(optional) [string] - defines the algorithm used by the program. When not defined, prompts user. Possible values:shift- shifts each letter by the specified number (key) according to its order in the alphabet. If you reach the end of the alphabet, start back at the beginning (a follows z). Only lowercaseunicode- shifts every character from the given stringdatanumber ofkeypositions on unicode table.
mode(optional) [string] - defines program mode. When not defined, prompts user. Possible values:enc- encryptsdatadec- decryptsdata
in(optional) [string] - path to a file containing text to be procced by the programout(optional) [string] - path to a file to print the result of the program. If not defined the result its printed to the console.
java Main -key 10 -mode enc -in road_to_treasure.txt -alg unicode -out protected.txt