Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
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 12-Nov-13 23:04pm
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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900