?
Solved

Format of BigInteger in Java

Posted on 2010-01-11
5
Medium Priority
?
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

765 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