So this is my first post, and I was looking for some help in encrypting a string. This is almost certainly way above my level, but I decided to take it on as a challenge. Anyway, to the code:
Scanner keyboard = new Scanner(System.in);
System.out.print("Please type a string to be encoded: ");
char input;
input = keyboard.nextChar();
System.out.println("Your string was: "+input);
So this is what I've got so far, just a few simple lines that take a string, and give it back to you. What I would like to know is:
- Is this a good starting point to work from?
- What steps should I take next to encode the string?