If you always want the same keypair, why generate it in the first place? Just hardcode it! Besides - This code works for me, it is EC and not RSA/DH, but it has the around the same safety using 256bit keys.
http://pastebin.com/RJF3NAYe Though I guess changing the parameters to the DH/RSA ones schould work as well, in general crypto++ is pretty straight forward. Vikas patial wrote: > I need to generate a public private keypair of atleast 2048 bit for > some operations in my software. > > I was doing this earlier using Fixedrng but it does not seem to work > now ( somehow it hangs ), Also using seeded RandPool does not work > maybe im doing something wrong. > > So if anyone can help me generate a fixed keypair based on a seed it > would be great . Basically same keypair is generated everytime for the > same seed. > > I am using the code form http://www.cryptopp.com/wiki/RSA and saving > it to files. > > The first person who sorts this out for me i would offer 30 USD > ( Paypal ) . > > -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
