<p>Electrum uses AES-256-CBC to encrypt wallets.  The key is sha256(sha256("your password")).</p>

<p>Electrum wallet source:
<a href="https://github.com/spesmilo/electrum/blob/master/lib/wallet.py" rel="noreferrer">https://github.com/spesmilo/electrum/blob/master/lib/wallet.py</a></p>

<p>slowaes library:
<a href="https://code.google.com/p/slowaes/source/browse/trunk/python/aes.py" rel="noreferrer">https://code.google.com/p/slowaes/source/browse/trunk/python/aes.py</a></p>

CC BY-SA 3.0
2013-11-16T21:25:34.877Z
2013-11-16T21:25:34.877Z
Dust
<p>Electrum can encrypt the private keys in wallets with a user entered password. But what encryption algorithm is used? I'd hope it is reasonably strong crypto. I've looked at the Electrum docs and can't find specifics.</p>

<wallet><encryption><electrum><passphrase>
What encryption does Electrum use for private keys in wallets?
occulus
# What encryption does Electrum use for private keys in wallets?

(Asked by: username_0 on 2013-11-16)

Electrum can encrypt the private keys in wallets with a user entered password. But what encryption algorithm is used? I'd hope it is reasonably strong crypto. I've looked at the Electrum docs and can't find specifics.

**Tags:** wallet, encryption, electrum, passphrase


---

## 1 answers

### Answer by username_1 on 2013-11-16. Score: 6 | Accepted answer

Electrum uses AES-256-CBC to encrypt wallets. The key is sha256(sha256("your password")).

Electrum wallet source:
<https://github.com/spesmilo/electrum/blob/master/lib/wallet.py>

slowaes library:
<https://code.google.com/p/slowaes/source/browse/trunk/python/aes.py>


---

