Bitcoin Forum
April 24, 2024, 07:06:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Which is safer from brute force attacks, wallet.dat or BIP38 encrypted key?  (Read 793 times)
pf (OP)
Full Member
***
Offline Offline

Activity: 176
Merit: 105


View Profile
July 14, 2015, 08:40:38 PM
 #1

Two ways:

1. Encrypt my wallet.dat in Bitcoin Core, generate a new address, and just keep the address there.

2. BIP38 encrypt the private key with the same password.

Which of the two - encrypted wallet.dat or BIP38 - keeps the private key in question safer against brute force attacks (password guesses)?

I suspect it's BIP38 since it uses scrypt (correct me if I'm wrong). In this case, are there plans to make Bitcoin Core use scrypt - to make it as safe against brute force as BIP38? I would kind of prefer just sticking to Bitcoin Core. Using an external tool to BIP38 encrypt is tedious.
1713942400
Hero Member
*
Offline Offline

Posts: 1713942400

View Profile Personal Message (Offline)

Ignore
1713942400
Reply with quote  #2

1713942400
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
July 14, 2015, 09:14:59 PM
 #2

I think they are probably equally safe. The wallet uses SHA512 and openssl to derive a key from your password before doing AES256 using the derived key. BIP38 on the other hand uses Scrypt to derive the key before encrypting with AES256 with the key. I think they both work just as well but BIP38 might be a little safer since scrypt is specially designed for key derivation and is designed to be slow.

Xialla
Legendary
*
Offline Offline

Activity: 1036
Merit: 1000


/dev/null


View Profile
July 14, 2015, 09:30:06 PM
 #3

if you will establish password, which is strong and long enough and it is not stored in any digital form and just printed, both methods are very secure and theoretically impossible to hack using current HW and possibilities.

for basic overview, how long it will take just visit https://www.grc.com/haystack.htm and try equivalent of your password, it may improve your sleep comfort as well:)
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!