Skip to content

Commit

Permalink
FINAL DEBUG LAGI
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasdevo committed Apr 15, 2015
1 parent 529fafc commit 9322778
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions KIJChat/build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue, 14 Apr 2015 23:46:08 +0700
#Wed, 15 Apr 2015 09:34:47 +0700


E\:\\KAMPUS\\Kuliah\ ITS\\Semester\ 6\\REPO2\\simple-chat\\KIJChat=
E\:\\KAMPUS\\Kuliah\ ITS\\Semester\ 6\\REPO3\\simple-chat\\KIJChat=
Binary file modified KIJChat/build/classes/kijchat/KIJChat2$IncomingReader.class
Binary file not shown.
Binary file modified KIJChat/build/classes/kijchat/KIJChat2.class
Binary file not shown.
Binary file modified KIJChat/build/classes/kijchat/KIJChatting$3.class
Binary file not shown.
Binary file modified KIJChat/build/classes/kijchat/KIJChatting.class
Binary file not shown.
3 changes: 2 additions & 1 deletion KIJChat/src/kijchat/KIJChat2.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public void run(){
String Key=myRSA.Deskripsi_RSA(data[4], myRSA.Get_ed_RSA(myPrivateKey), myRSA.Get_N_RSA(myPrivateKey));
//myBeranda.ShowActivity("Got Message From "+data[1]+"\n");
String Plain=myRC4.Deskripsi(data[3], Key);
String Hash1=myRC4.Deskripsi(data[5], Key);
String Hash=myRC4.getMD5(Plain);
if(Hash.compareTo(data[5])==0){
if(Hash.compareTo(Hash1)==0){
myBeranda.ShowActivity("Got Message From "+data[1]+" \nMessage : "+data[3]+"\nPlain :"+Plain+"\n");
myBeranda.SendTo(data[1], Plain);
}
Expand Down
5 changes: 3 additions & 2 deletions KIJChat/src/kijchat/KIJChatting.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class KIJChatting extends javax.swing.JFrame {
Socket sock;
BufferedReader reader;
PrintWriter writer;
String Recepient, Sender, Cipher, Key, e, n, PublicKey, Hash;
String Recepient, Sender, Cipher, Key, e, n, PublicKey, Hash, Hash_new;
public KIJChatting(Socket sock, BufferedReader reader, PrintWriter writer, String Recepient, String Sender, Beranda Menu_Utama, String PublicKey) {
this.sock=sock;
this.reader=reader;
Expand Down Expand Up @@ -152,9 +152,10 @@ private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FI
//ChatArea.append("3\n");
Hash=myRC41.getMD5(SendField.getText());
Cipher=myRC41.Enkripsi(SendField.getText(), DefaultKey);
Hash_new=myRC41.Enkripsi(Hash, DefaultKey);
//ChatArea.append("Sender"+e+":"+n+":"+Key+":"+Cipher+":\n");
ChatArea.append("Succesfull Send Message\n");
writer.println("SEND:"+Sender+":"+Recepient+":"+Cipher+":"+Key+":"+Hash+":");
writer.println("SEND:"+Sender+":"+Recepient+":"+Cipher+":"+Key+":"+Hash_new+":");
writer.flush();
ChatArea.append(Sender+":"+SendField.getText()+"\n");
Menu_Utama.ShowActivity("SEND FROM ="+Sender+" TO = "+Recepient+" : "+SendField.getText()+"\n");
Expand Down

0 comments on commit 9322778

Please sign in to comment.