electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 64733a39dcf702d271236eb044fa23263e9948f2
parent 1846154ca3cc8e8ff3e8fcd14b700f7722a781a0
Author: Evgeny Zinoviev <reg@ch1p.com>
Date:   Wed, 22 Apr 2020 02:01:41 +0300

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


Diffstat:
Melectrum/gui/qt/main_window.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/electrum/gui/qt/main_window.py b/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"])