0

Is there any standalone software modules created which allow the user to complete the following: 1. Enter in passphrase 2. Enter a given salt 3. Enter the number of rounds

I am looking for this in order to find the value, and locate the memory location in either Bitcoin src code or Wallet.dat file database. I have found the master key, iv, salt and rounds in wallet.dat file already. Thanks for all the help and I will pass tips to those who point me in the right direction. Thanks again.

  • What are you trying to do? This sounds like you have some issue for which you think that such a software is the solution. What is the problem that you are actually trying to fix? – Andrew Chow Sep 4 at 22:17
  • I am tracing source code with my passphrase to understand how Bitcoin Core works exactly as far as Encrypt/Decrypt of passphrase. The function EVP_ByteToToken, I do not follow exactly, thus the request. – kmart875 Sep 5 at 1:01
  • Bitcoin Core no longer uses OpenSSL in wallet encryption (or in the vast majority of the software). Whatever OpenSSL functions that were used have been reimplemented in Core to be backwards compatible. It is probably easier for you to read the source code for up-to-date Bitcoin Core rather than older versions that still use OpenSSL. – Andrew Chow Sep 5 at 2:54
  • Thanks. I am using the source code from github.com/bitcoin/bitcoin. – kmart875 Sep 5 at 3:28
  • allet encryption uses AES-256-CBC to encrypt only the private keys that are held in a wallet. The keys are encrypted with a master key which is entirely random. This master key is then encrypted with AES-256-CBC with a key derived from the passphrase using SHA512 and OpenSSL's EVP_BytesToKey and a dynamic number of rounds determined by the speed of the machine which does the initial encryption (and is updated based on the speed of a computer which does a subsequent passphrase change). – kmart875 Sep 5 at 3:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.