RSA Chat Messenger(Number Format Exception in Java) -
im doing rsa chat messenger(single server,multiple clients).i have included send,decrypt,exit button.when client sends message 1 client other client.the client recieves message gets in encrypted form , clicks decrypt button original message.but when im clicking decrypt button im getting awt-eventqueue-0" java.lang.numberformatexception , getting wierd characters in decryption section. here code: private string bytestostring(byte[] encrypted) { // todo auto-generated method stub //return null; string test = ""; (byte b : encrypted) { test += byte.tostring(b); } return test; } public static void main(string ... args) { // take username user string name = joptionpane.showinputdialog(null,"enter name :", "username", joptionpane.plain_message); string servername = "localhost"; try { new chatclient( name ,servername); } catch(exception ex) { out.println( ...