From a2e7c0bdb9b5bf25d2072f2fdc24c28a5f1f7025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Munteanu?= Date: Sat, 24 Dec 2022 02:33:22 +0200 Subject: [PATCH 1/4] Rewrite code for better readability and performance In the JS files: recomputed salt and iv bytes, changed hexStringToBytes to something performs faster and is easier to read, removed unnecessary comments, and instead used self-explanatory variable names, replaced all quotes with either '' or ``, added ; at the end of each line. In the CSS and HTML: used fewer lines of code, to have a better view for the JS code, since that is the main focus of bounty.html. --- examples/bounty.html | 377 ++++++++++++++++--------------------------- 1 file changed, 139 insertions(+), 238 deletions(-) diff --git a/examples/bounty.html b/examples/bounty.html index 5971aae..5374be0 100644 --- a/examples/bounty.html +++ b/examples/bounty.html @@ -1,7 +1,6 @@ @@ -9,283 +8,185 @@ - - - +

Portable Secret Bounty

This secret contains a Bitcoin wallet recovery key

If you can crack the secret, the funds are yours! (~$400 at today's rate)

- -

- You can check the status of the wallet here: here. -

- +

You can check the status of the wallet here: here.

Password hint:

-
4 words, joined by dots, capitalized as necessary
-
-1. The swimming pool accident -- her first name
-2. Name of the flowers on the balcony that I used to care for
-3. Name of the guy that really made a difference (The Encounter, 2017)
-4. The gift from Veronica (2 words without space)
-
+
+      4 words, joined by dots, capitalized as necessary
+ 1. The swimming pool accident -- her first name + 2. Name of the flowers on the balcony that I used to care for + 3. Name of the guy that really made a difference (The Encounter, 2017) + 4. The gift from Veronica (2 words without space) +
-

Password:

-
- - - -
Details - These are decryption inputs, that can be safely transmitted in the clear. Without the correct password, they are useless. - -
- Salt: - -
- -
- IV: - -
- -
- Ciphertext:
- -
+
Salt:
+
IV:
+
Ciphertext:
From 2e7e241c760e1869d3e10eef9f73ab8c3c1a53f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Munteanu?= Date: Sat, 24 Dec 2022 02:38:30 +0200 Subject: [PATCH 2/4] Removed inexistent file from src. --- examples/bounty.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/bounty.html b/examples/bounty.html index 5374be0..9817309 100644 --- a/examples/bounty.html +++ b/examples/bounty.html @@ -20,11 +20,11 @@ a.decrypted { font-size: xx-large; } input.password_input { font-size: large;padding: 12px 20px; } -