Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Chat security. pursuing aid.

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chat security. pursuing aid.

    I have constructed a chat application. Server conveys messages to all clients for the main <<wall>> of the chat. The rest happens via peer to peer connection between the clients. There is a final step i shall have to take in order to finalize this project. I need to add a good degree of security in the messages. The passwords are secured via message digest so im covered there. Have tried 3des and i think it can work if some issues are fixed. If i manage to have a key saved somehow and use it both in the server and clients it could work. Have tried for a couple of weeks but my pursue was unfruitful. If anyone has a solution for this problem i would really appreciate the help.

    Summary : I need a way to secure the communications in my chat with a standard key for both client and server.

    Thank you
    It takes a long time to become young.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 688 Times in 675 Posts

    Default Re: Chat security. pursuing aid.

    Thread moved.

    What have you tried? Why has it failed? How do you know it failed?

  3. #3
    Junior Member
    Join Date
    Oct 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Chat security. pursuing aid.

    Summary : I need a way to secure the communications in my chat with a standard key for both client and server.
    I'm not sure why you're using 3DES (DES). It was really meant to be implemented in hardware. IMHO, a software implementation would be a serious hit on performance.

    But anyway, you may want to check out AES using ECB (Electronic Code Book). I'm currently working with Java code written and published on the net by a very proficient Java programmer. This code implements the AES ECB security. Both the server and client know the private key and they use this key to negotiate a secure session. Check out the AES.java file from this programmer. It details the implementation of AES.

    I have the automation/security controller that the Java code connects with and can verify that the code works as described by the author.

    The code can be found at https://code.google.com/p/jomnilink/

    Finally, I'm a C programmer transitioning to Java. At this point in time, my Java skill level is little more than "hello world". So, I can't be much of a help to you in the interpretation of the Java code.

  4. #4
    Junior Member
    Join Date
    Jul 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chat security pursuing

    How would I be able to test out and look for any security holes that a malicious code can easily be inserted to?

Similar Threads

  1. Chat using TCP/IP, chat text,Voice,Icon,send file ....
    By hien281191 in forum Totally Off Topic
    Replies: 2
    Last Post: September 13th, 2013, 03:56 PM
  2. Can Someone aid me in my conversion quest?
    By Nickalahobiboolan in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 15th, 2013, 06:56 PM
  3. Chat security. pursuing aid.
    By Dunkelheit in forum Object Oriented Programming
    Replies: 0
    Last Post: April 11th, 2012, 06:41 AM