PDA

Click to See Complete Forum and Search --> : Long Number Storage for Encryption


pskyboy
Jul 21st, 2001, 11:40 AM
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

parksie
Jul 21st, 2001, 12:01 PM
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?

pskyboy
Jul 21st, 2001, 12:10 PM
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