Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Format of BigInteger in Java

Posted on 2010-01-11
5
Medium Priority
?
340 Views
Last Modified: 2013-11-25
I have a RSA exponent in the form of a BigInteger. As it seems in an example, I am supposed to get it into some xml. In the example it looks like this: <Exponent>AQAB</Exponent>

SInce there are no == in the end, I assume it is not Base64 encoded. Correct?
So, what form is this and how do I get there?
0
Comment
Question by:mdoland
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 26282322
Yes - if you output it as hex, you won't need Base64
0
 

Author Comment

by:mdoland
ID: 26283521
But what about the Q? I thought hex was constructed out of 0123456789ABCDEF.

0
 
LVL 86

Accepted Solution

by:
CEHJ earned 1500 total points
ID: 26283834
>>I thought hex was constructed out of 0123456789ABCDEF.

Yes - what's the problem with that?
0
 

Author Closing Comment

by:mdoland
ID: 31675450
Q isn't part of the characters that you express hex with. The reason as it showed in this example is that it was base64.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 26512903
:-)

>>SInce there are no == in the end, I assume it is not Base64 encoded. Correct?

It could easily be base64 - in fact i don't know what else it could be
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Communication between departments might not happen in two different languages, but they do exist in two different worlds. With different targets and performance goals the same phrase often means something completely different to each party. Learn ho…
Transparency shows that a company is the kind of business that it wants people to think it is.
Integration Management Part 2
Introduction to Processes
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question