Bitcoin Forum
June 21, 2024, 09:14:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Do you think BIP38 is good for keep my BTC safe?  (Read 241 times)
gondel (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1005


View Profile
April 10, 2019, 07:38:37 PM
 #1

Hi all,
I want to protect my coins with BIP38 on paper, but my main worry is lot of wallets are not supporting this encryption.
So lets say after 10 years no one uses wallets which support BIP38 encryption will I be able to get my coins back?
Is there are universal way to decrypt BIP38 if you do KNow your pass?
THanks!
TryNinja
Legendary
*
Offline Offline

Activity: 2870
Merit: 7116


Crypto Swap Exchange


View Profile WWW
April 10, 2019, 07:49:23 PM
 #2

Is there are universal way to decrypt BIP38 if you do KNow your pass?
Yes. Even if there are no wallets supporting BIP38 in the future, you can just use a tool to decrypt it and import it in any Bitcoin wallet.

For example, BitAddress.org (which is open source and can be run offline) has an option to decrypt them.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 10, 2019, 09:12:26 PM
 #3

Is there are universal way to decrypt BIP38 if you do KNow your pass?
Further to this, the methods for encrypting and decrypting are publicly and well defined in the published "BIP38" standard here: https://github.com/bitcoin/bips/blob/master/bip-0038.mediawiki

Basic method for decryption is:
Decryption steps:
  • Collect encrypted private key and passphrase from user.
  • Derive derivedhalf1 and derivedhalf2 by passing the passphrase and addresshash into scrypt function.
  • Decrypt encryptedhalf1 and encryptedhalf2 using AES256Decrypt, merge them to form the encrypted private key.
  • Convert that private key into a Bitcoin address, honoring the compression preference specified in flagbyte of the encrypted key record.
  • Hash the Bitcoin address, and verify that addresshash from the encrypted private key record matches the hash. If not, report that the passphrase entry was incorrect.

There are also some test vectors at the bottom of the page that would allow you to "practice" decryption if you felt the need.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
April 11, 2019, 01:23:31 AM
 #4

So lets say after 10 years no one uses wallets which support BIP38 encryption will I be able to get my coins back?
Is there are universal way to decrypt BIP38 if you do KNow your pass?
Yes, just keep yourself a copy of BIP38 tool, such as the one TryNinja mentioned, on your usb/cloudstorage/hdd
or the hard way, you can read and understand what HCP posted Cheesy the technical way
finding BIP38 tool (or decrypting it) in the future is the least of your problem,
your main problem is if you forgot your passphrase, recovering your bitcoin by bruteforcing BIP38 would be very hard

pooya87
Legendary
*
Offline Offline

Activity: 3486
Merit: 10666



View Profile
April 11, 2019, 03:08:59 AM
 #5

when you encrypt your private key using BIP38 you using two cryptography functions that are well known: AES and scrypt. so the security of it mainly depends on those functions and they are both widely used, reviewed and secure functions.
if some day you couldn't find a tool to decrypt your BIP38 encrypted key you can just ask a developer to take a look at BIP38 link posted above and write you a code (it will be less than 10 lines of code if you aren't using the EC-multiplied keys which normally you wouldn't).

in the end if you don't like BIP38 then simply use AES to encrypt your keys. you will find lots of applications to do it since it is a well known and well used encryption technique BUT remember that you need to know what you are doing and the application you use must be safe not anything you find on the internet!

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
gondel (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1005


View Profile
April 11, 2019, 01:27:08 PM
 #6

Thank you very much for the good answers!
I decided to go with BIP38
Thanks
TryNinja
Legendary
*
Offline Offline

Activity: 2870
Merit: 7116


Crypto Swap Exchange


View Profile WWW
April 28, 2019, 12:53:18 PM
 #7

we have to use it in offline mode for more security?
It’s up for you to decide. Doing it offline increases your security and blocks possible external threats.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!