set more restrictive file permissions for exported private keys (#6106)
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user