LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2010, 06:09 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
C++ BigInt


Is there a C++ BigInt library for Linux? I have Googled plenty of times, to no avail.

Also note: This library must work with hexadecimal numbers.
 
Old 03-04-2010, 06:19 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by Kenny_Strawn View Post
Is there a C++ BigInt library for Linux? I have Googled plenty of times, to no avail.

Also note: This library must work with hexadecimal numbers.
Maybe 'Boost' library ?

And how do you exactly describe "hexadecimal numbers" You insist the numbers should be represented as ASCII hex strings, i.e. consist of ASCII characters 0-9a-f ?
 
Old 03-04-2010, 06:42 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Sergei Steshenko View Post
And how do you exactly describe "hexadecimal numbers" You insist the numbers should be represented as ASCII hex strings, i.e. consist of ASCII characters 0-9a-f ?
The OP probably means it needs to be able to take numbers in ASCII 0-F and print numbers in ASCII 0-F.
 
Old 03-04-2010, 10:28 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Does this help:

C++ BigInt Class Library

PS:
Manipulating arbitrarily large integers is one thing. Formatted printing of such integers is another. You can definitely do the former with the above SourceForge project; I believe it should be fairly easy to do the latter as well.

Last edited by paulsm4; 03-04-2010 at 10:30 PM.
 
Old 03-05-2010, 12:42 AM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
What I want to accomplish is brute force of 128-bit hexadecimal numbers. In other words: Using variables to set a range of numbers with a lower limit and upper limit, for the purpose of guessing numbers in between. This in order to, for instance, crack devices for the purpose of jailbreaking them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration