Bitcoin Forum
May 25, 2024, 12:37:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: hide connect rpc in code  (Read 576 times)
tradebtcdotus (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
October 11, 2015, 12:24:39 PM
 #1

Hello everybody!
When I use php connect with bitcoind via rpc
I must write user/password rpc in code
problem: when hacker hack code, they will get my bitcoin.
how can I hide connect rpc in code?
sellscript
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
October 11, 2015, 12:25:42 PM
 #2

I think you can use database
achow101
Staff
Legendary
*
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
October 11, 2015, 02:42:24 PM
 #3

Hello everybody!
When I use php connect with bitcoind via rpc
I must write user/password rpc in code
problem: when hacker hack code, they will get my bitcoin.
how can I hide connect rpc in code?
Make sure you setup the rpc so that both port 8332 is not available from the outside and that the rpc server only accepts connections from whatever ip the webserver is hosted on. (probably localhost)

goregrind
Full Member
***
Offline Offline

Activity: 149
Merit: 100


View Profile
October 13, 2015, 03:50:14 AM
 #4

There is no easy solution here, just write secure scripts.
As long as your script has access to your bitcoins so will any attacker that gets access to your script.

woot?
coinpr0n
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
October 13, 2015, 10:04:04 AM
 #5

If someone hacks the server that's pretty much it. But you can avoid putting the password directly into the source code by using the server's environment variables or some other mechanism of separating it out and only read on loading / execution of the script.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!