|
-
Jul 21st, 2001, 11:40 AM
#1
Thread Starter
Lively Member
Long Number Storage for Encryption
Hey Guys
I need some help
i am trying to implment my own encryption headers at the moment and the big problem i ran into at the moment is where to store the values that are returned from the power function and to store the key in.
i need something that can store a 100 digit long numbers to store the keys and then something to store well over 1000digit long numbers.
Is there anyway of declaring your own data types to do this.
Thanks for any help peter
"Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
-- Judas Priest
My email is [email protected]
-
Jul 21st, 2001, 12:01 PM
#2
Monday Morning Lunatic
The bitset template in the STL may be of use, but not sure how well it would scale to 1000s of digits. You may be better off just using a string to hold it. What sort of operations are you planning?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 21st, 2001, 12:10 PM
#3
Thread Starter
Lively Member
Hey Parksie
i need to take a integer value the plain text and power it by the encryption key. the plain text will be anywhere from 2^32 + although this will probably be the max i use. I then need to take this and power it to the encryption key like i said above and this will be anywhere form 100 digits + in length.
cheers
Peter
"Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
-- Judas Priest
My email is [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|