Browse Source
set more restrictive file permissions for exported private keys (#6106)
master
Evgeny Zinoviev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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"]) |
|
|
|