recently I find the crypto++ source code,I want to use ECP.
There is a question for me to resolve:
   How to convert integer to string?
   I find a message as this:
 How to output a Integer as string(Decimal/Hex)? I just can do this:

         Integer plaintext;
        byte* buffer=new byte[1024];                    
        for (int i=0;i<plaintext.ByteCount();i++)       
                buffer[plaintext.ByteCount()-1-i]=plaintext.GetByte(i);         
        buffer[plaintext.ByteCount()]=0;
        StringSource(buffer,plaintext.ByteCount(), true,                
         new HexEncoder(                                                
             new FileSink(cout))); 
 But not fit me,How can I do?
-- 
View this message in context: 
http://www.nabble.com/How-can-I-convert-Integer-to-string-tf2742226.html#a7651065
Sent from the Crypto++ mailing list archive at Nabble.com.

Reply via email to