Click here to Skip to main content
14,421,274 members
Rate this:
Please Sign up or sign in to vote.
See more:
long i;

        C = 1;
        for(int t=0;t<sss.length();t++)
        {
            for(i=0;i< e;i++)

                C=C*(string_to_hex(ccc))%n; // <- this part cannot use 

                                            // string_to_hex is string datatype
                    C = C%n;

        }


this is the code of RSA encryption
how do i use this formula to encrypt the Hex value or string value??
Posted
Updated 13-Nov-13 0:04am
v4
Comments
Thanks7872 13-Nov-13 2:51am
   
Why this question is tagged as "urgentz"?
♥…ЯҠ…♥ 13-Nov-13 3:05am
   
What Urgentz means?
Richard MacCutchan 13-Nov-13 5:06am
   
What is the question? The code you have shown above is meaningless and has nothing to do with RSA encryption. And, by the way, it is only urgent to you.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

That doesn't look a RSA implementation to me. You could start from the very RSA page at Wikipedia[^].
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100