RSA in PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
unixchick
Forum Newbie
Posts: 11
Joined: Thu Sep 11, 2003 11:21 pm

RSA in PHP

Post 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?
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

Post 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...
Post Reply