From 64a032e63fd5e828d20fb4cb741422e5809cb1a1 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 22 Dec 2021 12:03:38 -0500 Subject: [PATCH] Check file version --- src/Picocrypt.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index c47e770..2ab7563 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -1020,6 +1020,14 @@ func onDrop(names []string) { fin.Close() return } + if string(tmp) == "v1.17" || string(tmp) == "v1.18" || string(tmp) == "v1.19" || + string(tmp) == "v1.20" || string(tmp) == "v1.21" { + resetUI() + mainStatus = "Please use Picocrypt v1.21 to decrypt this file." + mainStatusColor = color.RGBA{0xff, 0x00, 0x00, 0xff} + fin.Close() + return + } tmp = make([]byte, 15) fin.Read(tmp) tmp, err = rsDecode(rs5, tmp)