Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
we're developing a Blockchain deployment solution kotal, and generating -rpcauth argument from the supplied user name and password.
The problem is when we try to use the same user and password using curl, it writes ThreadRPCServer incorrect password attempt from 127.0.0.1:55566
.
Here's how we're generating -rpcauth from password in golang.
user := "kotal" password = "s3cr3t" salt := make([]byte, 16) rand.Read(salt) hash := hmac.New(sha256.New, salt) hash.Write([]byte(password)) rpcauth := fmt.Sprintf("%s:%x$%x", user, salt, hash.Sum(nil))
what's wrong with our golang implementation ?
You could use or take inspiration from the rpcauth
script in the Bitcoin Core repository that does exactly this, but in Python.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments