Page 1 of 1

RSA in PHP

Posted: Thu Sep 11, 2003 11:21 pm
by unixchick
Hey all,

This is My FP on the board and I am lookin foward to bein a active member of it :)


Anyways... Heres my idea, ive been workin with the RSA encryption algorithim and know it like the back of my own hand. Im wondering if its possible to use large numbers in php efficiently ie(over 64 bit integers) and use a stable random number generator? Ive thought of using BCmath or somthing in GMP but i want to use it on windows too... Any ideas?

Posted: Sat Sep 13, 2003 5:30 am
by McGruff
Welcome to the forum.

Your question is outside my own knowledge but the arbitrary precision mathematics fns http://www.php.net/bc might be part of what you're looking for.

Posted: Fri Sep 19, 2003 11:00 pm
by evilMind
As of php 4.2 ( I think ). You don't have to seed the random number generator to get a good "random" number. However, if you'd like to make this number even more random and don't feel like playing with /dev/urandom or /dev/random (which sucks btw) check out egd http://egd.sourceforge.net/ don't know if it'll work on windows w/o cygwin or something of the such though...