This code generates a mini-key if anyone's interested. I was looking for the next step, priv->pub key when I ran across this thread. It needs tidying of course and I just remembered I'm using the non-crypto rand() so that will need to be fixed too. Maybe I should just delete it
Edit: OK, fixed to use /dev/urandom. Use /dev/random if you'd prefer.
#Below is full list of available characters.
$fp=fopen("/dev/urandom","r") or die;
$check=hash('sha256',$minikey . '?') . "\n";
print "Minikey: $minikey\n";
print "Privkey: $priv\n";
Note that I deliberately exclude "1' and 'o' but you may add them back in if needed.