bitcoin-rpcauth-js
Create login credentials for a JSON-RPC user
Bitcoin 'rpcauth' option generator
A canonical python script is included in share/rpcauth.
-rpcauth=<userpw> Username and HMAC-SHA-256 hashed password
Requirements
Usage In your PC
bitcoin-rpcauth [username] [password] [salt] Create login credentials
Usage:
bitcoin-rpcauth user_777# or bitcoin-rpcauth --username user_777# or bitcoin-rpcauth -u=user_777
Returned:
String to be appended to bitcoin.conf:rpcauth=user_777:a031c9a6bf82e4c5af455fe2f1aae67d$d801b2e75986c51c2d898e66d33e58ef3557adf509efcb227d5141eb1aa77fd9Your password:Sywps_2-pL4uLYf-DzWfJYxOQfFRJcmu0kUBhKOs-4c
yarn
Installation in your PC throughyarn global add bitcoin-rpcauth-js
yarn from GitHub
Installation in your PC throughyarn global add https://github.com/an-ivannikov-dev/bitcoin-rpcauth-js
Removing from your PC
yarn global remove bitcoin-rpcauth-js
git clone
from GitHub
Installation in your PC through git clone https://github.com/an-ivannikov-dev/bitcoin-rpcauth-js.gitcd bitcoin-rpcauth-jsyarn install
Usage:
yarn start user_777# or yarn start --username user_777# or yarn start -u=user_777
Returned:
String to be appended to bitcoin.conf:rpcauth=user_777:a031c9a6bf82e4c5af455fe2f1aae67d$d801b2e75986c51c2d898e66d33e58ef3557adf509efcb227d5141eb1aa77fd9Your password:Sywps_2-pL4uLYf-DzWfJYxOQfFRJcmu0kUBhKOs-4c
Usage In your Project
const genSalt genPass genUser genHash genRpcAuth genRpcAuthStr = ; const username = ;console; const password = ;console; const salt = ;console; const hash = ;console; const rpcAuth = ;console; const rpcAuthObj = ;console; const rpcAuthObj2 = ;console;
Returned:
username: user_157password: lrD7Cr_BTwgwT6XJo1-LFdHSri6AtUGHfPppRioSnFIsalt: 105e26017130cece3a7fa3d78b91c468hash: b666ac313db0bc5e23177a8a2f47529820367fe313e2660f0091a67d726fbc9frpcauth: rpcauth=user_157:105e26017130cece3a7fa3d78b91c468$b666ac313db0bc5e23177a8a2f47529820367fe313e2660f0091a67d726fbc9frpcAuthObj: rpcAuthObj2:
yarn
Installation in your Project throughyarn add bitcoin-rpcauth-js
yarn from GitHub
Installation in your Project throughyarn add https://github.com/an-ivannikov-dev/bitcoin-rpcauth-js.git