From f0868f5a51614178d92f531ec99a041e90034e9b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 15 Dec 2018 09:26:54 +0100 Subject: [PATCH] revealer: warning re version 0 vulnerability --- electrum/plugins/revealer/qt.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electrum/plugins/revealer/qt.py b/electrum/plugins/revealer/qt.py index e9ed73ba8..80907e4b8 100644 --- a/electrum/plugins/revealer/qt.py +++ b/electrum/plugins/revealer/qt.py @@ -199,7 +199,15 @@ class Plugin(RevealerPlugin): self.txt = self.text.text() self.seed_img(is_seed=False) + def warn_old_revealer(self): + if self.versioned_seed.version == '0': + self.d.show_warning(''.join( + ["", _("Warning"), ": ", + _("Revealers starting with 0 are not secure due to a vulnerability."), ' ', + _("Proceed at your own risk.")])) + def cypherseed_dialog(self, window): + self.warn_old_revealer() d = WindowModalDialog(window, "Encryption Dialog") d.setMinimumWidth(500)