Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how will i convert the following public key to integer.

these are the RSAKeyValue:

Modulus: yf4I7PVef43rZ2NdPFA5FQFb/y/k/5Awqrwc+/VDUimthRg4C5K2P6EUhU5n2m4HUiz102LIuwsYDYuyHwG3VUbAb4zjqxiOwrSpsHfCvgOdLsb4DBrXFFGp5kMtoZrDzl84tnDlyYgy8v3o5Qp2eeQgDaau2PhYUxoco6IArHU=

Exponent:AQAB

i want to do this bcoz i want to take its xor with another integer value...

plz help here...

thnx...
Posted
Updated 18-Jul-10 1:57am
v3
Comments
Richard MacCutchan 18-Jul-10 8:19am    
In reply to your comment " if i start converting them it will take time... and don't want to do that.". Everything takes time, how else do you think computers work? In reality it is a short compute loop that will take a minute to write and a few microseconds to run, much less time than it takes to post this comment.

Well if you consider the number and type of characters that are in the key it's unlikely that you can do a straight conversion to an integer. You could, however write a conversion that reduces it to an integer; for example take the binary value of each character in turn and add them together to reduce it to a 32 or 64 bit value. Remember, however that such a value is not likely to be unique.
 
Share this answer
 
Comments
Jamal Abdul Nasir 18-Jul-10 8:08am    
thnx for ur reply brother... if i start converting them it will take time... and don't want to do that... that was in my mind already...
Nish Nishant 18-Jul-10 8:45am    
Reason for my vote of 5
Good suggestion. 5.
If you just need to generate a derivative integer from a string, why not call the GetHashcode() method which returns an integer?
 
Share this answer
 
This looks like Base-64 encoding to me. Google Base64 and see what you get.
 
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