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 3 of 3

Thread: In an RSA Encryption program....

  1. #1
    Member
    Join Date
    Sep 2013
    Posts
    64
    Thanks
    24
    Thanked 0 Times in 0 Posts

    Default In an RSA Encryption program....

    ....how do I turn the message into a number?

    I mean....if Molly says "Hi john how are you?"

    Then....how do I turn that into a number? I mean, I'm going to perform arithmetic on this number, calculate the mod, raise it to the power, etc.

    How do you make a single number out of it, then can easily be converted back and forth into a String?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: In an RSA Encryption program....

    What kind of a number are you expecting to get from that String? It would take a BigInteger to hold all of the number.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: In an RSA Encryption program....

    If you're truly interested in doing RSA Encryption, a search with your favorite search engine will yield many useful results. Requesting we do the search for you is just being lazy.

Similar Threads

  1. Cipher Client/Server Encryption/Decryption Program - Please Help
    By drwatson in forum What's Wrong With My Code?
    Replies: 11
    Last Post: April 15th, 2013, 11:13 AM
  2. Need help with RSA Encryption with ECB Mode
    By mdot in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 1st, 2013, 11:10 AM
  3. Help With Java Encryption Program
    By JonnySKK in forum Java Theory & Questions
    Replies: 1
    Last Post: October 9th, 2012, 06:21 PM
  4. Replies: 0
    Last Post: September 6th, 2012, 10:57 AM
  5. [SOLVED] RSA encryption based from a Sample Alice and Bob's key.
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 24
    Last Post: September 22nd, 2011, 08:38 AM