A question about BitShares private key encryption

Started by dorant, February 12, 2015, 01:40:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeroc

Quote from: arhag on February 14, 2015, 04:46:51 PM
Quote from: bitmeat on February 12, 2015, 04:49:08 PM
I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

You can if you manually specify the brain key when creating the wallet. It is an advanced feature for good reason IMO. If we had all the keys deterministically derived only from the wallet passphrase, then we would have other people get burned (as in have all of their funds stolen) because they selected a weak password.
Totally agree with arhag .. people nees to be educated to make backups and store them securely and redundant

arhag

Quote from: bitmeat on February 12, 2015, 04:49:08 PM
I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

You can if you manually specify the brain key when creating the wallet. It is an advanced feature for good reason IMO. If we had all the keys deterministically derived only from the wallet passphrase, then we would have other people get burned (as in have all of their funds stolen) because they selected a weak password.

bitmeat

Quote from: dorant on February 12, 2015, 01:40:10 PM
I've been trying to decrypt a private key using the passphrase for some time now, but I've run into some problems. After reading the source code, I thought that the encryption is done using BIP38, but the key size isn't correct, so I'm assuming either another algorithm was used or maybe there were some added characters.

Does anyone know exactly which algorithm BitShares uses to encrypt private keys, and can you show me the full steps?

Thanks

I don't think you can extrapolate the key from the passphrase itself. I think the key is stored in the wallet file, but encrypted with the passphrase.

I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

xeroc

Afaik the key is AES encrypted .. i am sure you can find some easy to read code in the javascript implementation at https://github.com/bitshares/bitshares-js .. good luck

dorant

I've been trying to decrypt a private key using the passphrase for some time now, but I've run into some problems. After reading the source code, I thought that the encryption is done using BIP38, but the key size isn't correct, so I'm assuming either another algorithm was used or maybe there were some added characters.

Does anyone know exactly which algorithm BitShares uses to encrypt private keys, and can you show me the full steps?

Thanks