Generate RSA keypair in perl efficently with custom PRNG -


i want generate public , private keypair, effciently (fast) in perl, , able input random data myself. inputting random data, of course mean, function requires lets x random bits generate public/private keypair of y bits, , should able supply these x bits function.

so idially, function should like:

($private, $public) = genrsakeypair($randomdata, 1024); 

and $private contains:

----begin rsa private key----- .... ----end .... 

and $public contains

----begin rsa public , on... 

$randomdata string of random bits random generator. if $randomdata consistent between instance1 , instance2, instance1 , instance2 should return same public , private keys.

if want know use of is, plan make password-based rsa key generation system, without need store keys anywhere. key generated straight out password, using sha512 chained in specific way create static random data.

of course, same public , private key must returned everytime same password entered in system, else system useless.

any ideas?

i try crypt::openssl::rsa, seems bind directly libssl


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -