Browse Source

set more restrictive file permissions for exported private keys (#6106)

master
Evgeny Zinoviev 5 years ago
committed by GitHub
parent
commit
64733a39dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      electrum/gui/qt/main_window.py

1
electrum/gui/qt/main_window.py

@ -2729,6 +2729,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
def do_export_privkeys(self, fileName, pklist, is_csv):
with open(fileName, "w+") as f:
os.chmod(fileName, 0o600)
if is_csv:
transaction = csv.writer(f)
transaction.writerow(["address", "private_key"])

Loading…
Cancel
Save