Results 1 to 4 of 4
  1. #1
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    244
    Rep Power
    4

    Default program brainstor

    I have an idea for a program, and am not even sure how it will work. here is my idea:

    A user sends a message to another user, encrypting the message for sending. when the user on the other end receives it, they use the code to decrypt the message, and are able to read it.
    what i don't understand, is if you send the encrypted message, and then the key along with it, isn't it pretty much useless? wouldn't you have to send it through 2 mediums?

    no code needed, just planning it out...

    thanks in advance.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,433
    Blog Entries
    7
    Rep Power
    20

    Default Re: program brainstor

    Read about public and private key encryption; you encrypt with the public key (but you can't decrypt it with the public key) and you decrypt the message with the private key.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    christopherx is offline Member
    Join Date
    Oct 2011
    Posts
    92
    Rep Power
    0

    Default Re: program brainstor

    Jos' suggestion is definitely worth research. Another idea is to use this: Diffie

    If you get stuck with that, give someone a shout and I'm sure we can help :)

  4. #4
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    244
    Rep Power
    4

    Default Re: program brainstor

    so let's say you have a message to send, and you send the private key. then there is a middle-man to intercept the message. wouldn't they be able to decrypt the message?

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2011, 12:57 PM
  2. Replies: 13
    Last Post: 03-22-2011, 06:49 AM
  3. changing my program to array working program
    By Chewart in forum New To Java
    Replies: 39
    Last Post: 11-18-2009, 06:53 PM
  4. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •