Hi I need help trying to create a code to encrypte and decrypte a message in netbeans.I know what to do but I cant get it to encrypte and decrypte.Can you please help me.

2 answers

assistance needed
First you'll have to come up with an algorithm to encrypt, and to decrypt. There are many algorithms available from Caesar's shift cipher to other more sophiscated ones.

Some would decrypt when you encrypt the coded message again, so only one algorithm is required.

I am sure you teacher has gone through some of the possible ones you could use. Otherwise, start with the Wiki article:
http://en.wikipedia.org/wiki/Cipher
or simply Google "ciphers".

If you have already chosen an algorithm, or have difficulty choosing one, post again.