Author

Topic: Can a bitcoin address be generated by PHP ? (Read 925 times)

legendary
Activity: 2394
Merit: 1216
The revolution will be digital
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.

Ok... so u mean, I just need to change the random number generator from mt_rand() to openssl_random_pseudo_bytes() ?


Yes. Just copy the changed code in that pull.

thanks, can u plz help me out here => https://bitcointalksearch.org/topic/can-rawtx-be-created-using-php-709974 ?
You're in deep with that, one wrong move with rawtx and you can make a fee that is huge or simply send the coins to some wrong address.

In my specific requirement all the outputs of the address in question will be spent. Hence I'm not bothered about change address or big mining fee. Rather I'm concerned how do I calculate the required mining fee depending on the Tx size.
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.

Ok... so u mean, I just need to change the random number generator from mt_rand() to openssl_random_pseudo_bytes() ?


Yes. Just copy the changed code in that pull.

thanks, can u plz help me out here => https://bitcointalksearch.org/topic/can-rawtx-be-created-using-php-709974 ?
You're in deep with that, one wrong move with rawtx and you can make a fee that is huge or simply send the coins to some wrong address.
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.

Ok... so u mean, I just need to change the random number generator from mt_rand() to openssl_random_pseudo_bytes() ?


Yes. Just copy the changed code in that pull.

thanks, can u plz help me out here => https://bitcointalksearch.org/topic/can-rawtx-be-created-using-php-709974 ?
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.

Ok... so u mean, I just need to change the random number generator from mt_rand() to openssl_random_pseudo_bytes() ?


Yes. Just copy the changed code in that pull.
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.

Ok... so u mean, I just need to change the random number generator from mt_rand() to openssl_random_pseudo_bytes() ?

legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
Everything you need is in that pull request.
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.

It would have been great, if u please shared the secured PHP code...
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
That pull is correct, non-cryptographically secure functions should never be used to generate pub/priv keypairs.

Also, a Bitcoin address can be generated in pretty much ANY language, not just PHP.
newbie
Activity: 52
Merit: 0
https://github.com/prusnak/addrgen

this tool uses public master key from a deterministic wallet (like electrum) and generates addresses.
i would not run anything else on a server that will be accessible from internet
hero member
Activity: 700
Merit: 500
Yes looks like that in some situations it is not secure enough but my knowledge is too low for better understanding.
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1

Thank you so much... I think it'll serve my purpose. But I did not get the second link. Is not mt_rand() secure enough to generate a random seed ?
hero member
Activity: 700
Merit: 500
You can check this: https://github.com/zamgo/PHPCoinAddress

Also this script need to be patched for secure working. Look here for more: https://github.com/zamgo/PHPCoinAddress/pull/1
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
I'm looking for Bitcoin address generation code using PHP without any external call to BitcoinD. Can anyone please help me out ?

Jump to: