Post
Topic
Board Development & Technical Discussion
Merits 5 from 5 users
Re: Merging two encrypted wallet.dat files
by
HeRetiK
on 12/04/2020, 08:42:52 UTC
⭐ Merited by pooya87 (1) ,aliashraf (1) ,Heisenberg_Hunter (1) ,vapourminer (1) ,ETFbitcoin (1)
I have a technical question.

A wallet is protected by a password, which encrypts the key.

Is it possible to "merge" two encrypted wallets into one and have a completely new database, if they are encrypted with the same password?

Is there any paper on how the encryption works?

Two different encrypted wallets will be encrypted using two different keys, even if they have the same password. As you mentioned yourself, the key is encrypted using the password. Accordingly the wallet itself is not encrypted using the password but the randomly generated key that is encrypted using said password.

Bitcoin Core's wallet.dat uses standard ciphers and hashing algorithms. See here for reference:
https://en.bitcoin.it/wiki/Wallet_encryption

Information on AES-256 and SHA-512 itself is widely available. It is not possible to "merge" AES-256 encrypted data without decrypting it first, even if they are encrypted using the same key.