Although I have read some posts I didnt have manage to solve my issue!
I am trying to make a client server application with symmetric encryption. So here is what I do.
This is my while from my server
while ((inputLine = in.readLine()) != null) {
AES_Cipher.init (Cipher.DECRYPT_MODE, AES_Key);
plaintext_decrypted = AES_Cipher.doFinal (inputLine.getBytes("UTF-8"));
System.out.println("Server receive : "+ plaintext_decrypted);
System.out.println("type message :");
outputLine = stdIn.readLine();
out.println(outputLine);
}
Before I put this line plaintext_decrypted = AES_Cipher.doFinal (inputLine.getBytes("UTF-8"));
Everything works. But when I try to decrypt my message it crushes :/