but I think it would be safer if I needed 2fa too when i view or exporting the private key.
I hope you understand what I mean.
If someone has my password from Electrum, they also have my bitcoins, because it has the private keys too.
I dont't need 2fa for Login in Electrum and also i dont't need 2fa to see the Private Keys.
No... they don't have your bitcoins if you have a 2fa wallet and they
only have your password.
The 2fa wallet in Electrum is a special kind of "2-of-3 MultiSig" wallet... There are THREE master private keys that make up this wallet...
- Key #1 is stored (protected by the password, if any) within your Electrum wallet file
- Key #2 is NOT stored anywhere, but is able to be generated from your 12 word "seed mnemonic"
only (used for "emergency" recovery, ie. TrustedCoin offline, lost authenticator etc.)
- Key #3 is stored with TrustedCoin on their server
The private key you see when you right click on your address in 2fa wallet is one of the private keys generated from Key #1... but without Key #2 and Key #3, there is no way for the thief to actually get your coins. They don't have access to Key #2 as it is "hidden", and TrustedCoin won't sign with Key #3 without the 2fa code, so they've only got 1 key... and your 2-of-3 MultiSig requires at least 2!
However, if someone has your 12 word "seed mnemonic"... they can restore the wallet, and DISABLE 2FA... this will put both Key #1 AND Key #2 in your wallet file... and they'll be able to self-sign transactions without 2fa.
This is why the requirements for getting coins out of a 2fa wallet are:
1. The wallet file, wallet password (if any) and 2fa authenticator code
OR2. The 12 word seed mnemonic