Skip to content

Commit d1f225b

Browse files
committed
create better examples for good passwords
1 parent bcadec1 commit d1f225b

15 files changed

+305
-195
lines changed

documentation/docs/testbench/onlypasswords1.de.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ delete_id: teaser
77

88
Es ist möglich diese Seite mit einem der folgenden Passwörter zu entschlüsseln:
99

10-
- sassy
11-
- passport
12-
- scientist
13-
- acid
14-
- fryingpan
15-
- village
16-
- squirrel
17-
- **flashlight**
10+
- Clique.Shampoo.Ve55el
11+
- C4bbage Profile blinking
12+
- Head32_Sculpture_bovine_
13+
- Negotiator-leftover-567
14+
- moist:W00l:kept:royal
15+
- SpotChestOilCycle22
16+
- m00dy#augmented#Arsonist
17+
- **Hatless,hertz,C4lzone**
1818

1919
Wenn die unteren vier Passwörter eingegeben wird, dann ist auch [Nur Passwörter 2](onlypasswords2.md) entschlüsselt.
20-
Falls das Passwort "flashlight" verwendet wird, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
20+
Falls das Passwort "Hatless,hertz,C4lzone" verwendet wird, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
2121

22-
> **Hinweis:** Es wird länger dauern wenn das Passwort "flashlight" gewählt wird,
22+
> **Hinweis:** Es wird länger dauern wenn das Passwort "Hatless,hertz,C4lzone" gewählt wird,
2323
> weil es siebenmal an den anderen Proben scheitern wird.
2424
2525
///
@@ -29,21 +29,21 @@ Falls das Passwort "flashlight" verwendet wird, dann ist auch [Nur Passwörter 3
2929

3030
Eines dieser Passwörter **wurde** verwendet um diese Seite zu entschlüsseln:
3131

32-
- sassy
33-
- passport
34-
- scientist
35-
- acid
36-
- fryingpan
37-
- village
38-
- squirrel
39-
- flashlight
32+
- Clique.Shampoo.Ve55el
33+
- C4bbage Profile blinking
34+
- Head32_Sculpture_bovine_
35+
- Negotiator-leftover-567
36+
- moist:W00l:kept:royal
37+
- SpotChestOilCycle22
38+
- m00dy#augmented#Arsonist
39+
- Hatless,hertz,C4lzone
4040

4141
Wenn eines der untersten vier Passwörter eingegeben wurden, dann kann auch [Nur Passwörter 2](onlypasswords2.md)
4242
entschlüsselt werden.
43-
Falls das Passwort "flashlight" verwendet wurde, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
43+
Falls das Passwort "Hatless.hertz.pounce smile c4lzone" verwendet wurde, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
4444

4545

46-
> **Hinweis:** Es hat mit dem Passwort "flashlight" länger gedauert,
46+
> **Hinweis:** Es hat mit dem Passwort "Hatless,hertz,C4lzone" länger gedauert,
4747
> weil es vorher siebenmal an den anderen Proben gescheitert ist.
4848
4949
<script id="autostart">

documentation/docs/testbench/onlypasswords1.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ sharelink: true
88

99
The following passwords are valid to decrypt this page:
1010

11-
- sassy
12-
- passport
13-
- scientist
14-
- acid
15-
- fryingpan
16-
- village
17-
- squirrel
18-
- **flashlight**
11+
- Clique.Shampoo.Ve55el
12+
- C4bbage Profile blinking
13+
- Head32_Sculpture_bovine_
14+
- Negotiator-leftover-567
15+
- moist:W00l:kept:royal
16+
- SpotChestOilCycle22
17+
- m00dy#augmented#Arsonist
18+
- **Hatless,hertz,C4lzone**
1919

2020
If you use one of the last four passwords, you'd also be able to decrypt [only passwords 2](onlypasswords2.md).
21-
If you use the password "flashlight", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
21+
If you use the password "Hatless.hertz.pounce smile c4lzone", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
2222

23-
> **Note:** It will take some time if you use the password "flashlight"
23+
> **Note:** It will take some time if you use the password "Hatless.hertz.pounce smile c4lzone"
2424
> because it has to be tried on seven challenges before it works.
2525
2626

@@ -31,19 +31,19 @@ If you use the password "flashlight", you'd also be able to decrypt [only passwo
3131

3232
One of the following passwords **were** used to decrypt this page:
3333

34-
- sassy
35-
- passport
36-
- scientist
37-
- acid
38-
- fryingpan
39-
- village
40-
- squirrel
41-
- flashlight
34+
- Clique.Shampoo.Ve55el
35+
- C4bbage Profile blinking
36+
- Head32_Sculpture_bovine_
37+
- Negotiator-leftover-567
38+
- moist:W00l:kept:royal
39+
- SpotChestOilCycle22
40+
- m00dy#augmented#Arsonist
41+
- Hatless,hertz,C4lzone
4242

4343
If you used one of the last four passwords, you'd also be able to decrypt [only passwords 2](onlypasswords2.md).
44-
If you used the password "flashlight", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
44+
If you used the password "Hatless.hertz.pounce smile c4lzone", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
4545

46-
> **Note:** It took some time if you used the password "flashlight"
46+
> **Note:** It took some time if you used the password "Hatless.hertz.pounce smile c4lzone"
4747
> because it had to be tried on seven challenges before it worked.
4848
4949
<script id="autostart">

documentation/docs/testbench/onlypasswords2.de.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ delete_id: teaser
77

88
Es ist möglich diese Seite mit einem der folgenden Passwörter zu entschlüsseln:
99

10-
- fryingpan
11-
- village
12-
- squirrel
13-
- flashlight
10+
- moist:W00l:kept:royal
11+
- SpotChestOilCycle22
12+
- m00dy#augmented#Arsonist
13+
- **Hatless,hertz,C4lzone**
1414

1515
Wenn eines dieser Passwörter eingegeben wird, dann ist auch [Nur Passwörter 1](onlypasswords1.md) entschlüsselt.
16-
Falls das Passwort "flashlight" verwendet wird, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
16+
Falls das Passwort "Hatless,hertz,C4lzone" verwendet wird, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
1717

18-
> **Hinweis:** Es wird länger dauern wenn das Passwort "flashlight" gewählt wird,
18+
> **Hinweis:** Es wird länger dauern wenn das Passwort "Hatless,hertz,C4lzone" gewählt wird,
1919
> weil es siebenmal an den anderen Proben scheitern wird.
2020
2121
///
@@ -25,15 +25,15 @@ Falls das Passwort "flashlight" verwendet wird, dann ist auch [Nur Passwörter 3
2525

2626
Eines dieser Passwörter **wurde** verwendet um diese Seite zu entschlüsseln:
2727

28-
- fryingpan
29-
- village
30-
- squirrel
31-
- flashlight
28+
- moist:W00l:kept:royal
29+
- SpotChestOilCycle22
30+
- m00dy#augmented#Arsonist
31+
- Hatless,hertz,C4lzone
3232

3333
Nun kann auch [Nur Passwörter 1](onlypasswords1.md) entschlüsselt werden.
34-
Falls das Passwort "flashlight" verwendet wurde, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
34+
Falls das Passwort "Hatless,hertz,C4lzone" verwendet wurde, dann ist auch [Nur Passwörter 3](onlypasswords3.md) entschlüsselt.
3535

36-
> **Hinweis:** Es hat mit dem Passwort "flashlight" länger gedauert,
36+
> **Hinweis:** Es hat mit dem Passwort "Hatless,hertz,C4lzone" länger gedauert,
3737
> weil es vorher siebenmal an den anderen Proben gescheitert ist.
3838
3939
<script id="autostart">

documentation/docs/testbench/onlypasswords2.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ delete_id: teaser
77

88
The following passwords are valid to decrypt this page:
99

10-
- fryingpan
11-
- village
12-
- squirrel
13-
- flashlight
10+
- moist:W00l:kept:royal
11+
- SpotChestOilCycle22
12+
- m00dy#augmented#Arsonist
13+
- **Hatless,hertz,C4lzone**
1414

1515
If you use one of these passwords, you'd also be able to decrypt [only passwords 1](onlypasswords1.md).
16-
If you use the password "flashlight", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
16+
If you use the password "Hatless,hertz,C4lzone", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
1717

18-
> **Note:** It will take some time if you use the password "flashlight"
18+
> **Note:** It will take some time if you use the password "Hatless,hertz,C4lzone"
1919
> because it has to be tried on seven challenges before it works.
2020
2121
///
@@ -25,15 +25,15 @@ If you use the password "flashlight", you'd also be able to decrypt [only passwo
2525

2626
One of the following passwords **were** used to decrypt this page:
2727

28-
- fryingpan
29-
- village
30-
- squirrel
31-
- flashlight
28+
- moist:W00l:kept:royal
29+
- SpotChestOilCycle22
30+
- m00dy#augmented#Arsonist
31+
- Hatless,hertz,C4lzone
3232

3333
You're also able to decrypt [only passwords 1](onlypasswords1.md).
34-
If you used the password "flashlight", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
34+
If you used the password "Hatless,hertz,C4lzone", you'd also be able to decrypt [only passwords 3](onlypasswords3.md).
3535

36-
> **Note:** It took some time if you used the password "flashlight"
36+
> **Note:** It took some time if you used the password "Hatless,hertz,C4lzone"
3737
> because it had to be tried on seven challenges before it worked.
3838
3939
<script id="autostart">

documentation/docs/testbench/onlypasswords3.de.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
title: Nur Passwörter 2
2-
password: flashlight
2+
password: Hatless,hertz,C4lzone
33
inject_id: protected
44
delete_id: teaser
55

66
/// html | div#teaser
77

88
Es ist möglich diese Seite mit einem der folgenden Passwörter zu entschlüsseln:
99

10-
- flashlight
10+
- Hatless,hertz,C4lzone
1111

1212
Wenn eines dieser Passwörter eingegeben wird, dann ist auch [Nur Passwörter 1](onlypasswords1.md) und [Nur Passwörter 2](onlypasswords2.md) entschlüsselt.
1313

14-
> **Hinweis:** Es wird länger dauern wenn das Passwort "flashlight" gewählt wird,
14+
> **Hinweis:** Es wird länger dauern wenn das Passwort "Hatless,hertz,C4lzone" gewählt wird,
1515
> weil es siebenmal an den anderen Proben scheitern wird.
1616
1717
///
@@ -21,11 +21,11 @@ Wenn eines dieser Passwörter eingegeben wird, dann ist auch [Nur Passwörter 1]
2121

2222
Folgendes Passwort **wurde** verwendet um diese Seite zu entschlüsseln:
2323

24-
- flashlight
24+
- Hatless,hertz,C4lzone
2525

2626
Nun kann auch [Nur Passwörter 1](onlypasswords1.md) und [Nur Passwörter 2](onlypasswords2.md) entschlüsselt werden.
2727

28-
> **Hinweis:** Es hat mit dem Passwort "flashlight" länger gedauert,
28+
> **Hinweis:** Es hat mit dem Passwort "Hatless,hertz,C4lzone" länger gedauert,
2929
> weil es vorher siebenmal an den anderen Proben gescheitert ist.
3030
3131
<script id="autostart">

documentation/docs/testbench/onlypasswords3.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
title: Only passwords 3
2-
password: flashlight
2+
password: Hatless,hertz,C4lzone
33
inject_id: protected
44
delete_id: teaser
55

66
/// html | div#teaser
77

88
The following passwords are valid to decrypt this page:
99

10-
- flashlight
10+
- Hatless,hertz,C4lzone
1111

1212
If you use one of these passwords, you'd also be able to decrypt [only passwords 1](onlypasswords1.md) and [only passwords 2](onlypasswords2.md).
1313

14-
> **Note:** It will take some time if you use the password "flashlight"
14+
> **Note:** It will take some time if you use the password "Hatless,hertz,C4lzone"
1515
> because it has to be tried on seven challenges before it works.
1616
1717
///
@@ -21,11 +21,11 @@ If you use one of these passwords, you'd also be able to decrypt [only passwords
2121

2222
The following password **was** used to decrypt this page:
2323

24-
- flashlight
24+
- Hatless,hertz,C4lzone
2525

2626
You're also able to decrypt [only passwords 1](onlypasswords1.md) and [only passwords 2](onlypasswords2.md).
2727

28-
> **Note:** It took some time if you used the password "flashlight"
28+
> **Note:** It took some time if you used the password "Hatless,hertz,C4lzone"
2929
> because it had to be tried on seven challenges before it worked.
3030
3131
<script id="autostart">
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
title: Encode share link
2+
3+
# Various tests
4+
5+
[Test1a (user: dave)](userpass1.md#IWRhdmU6bnVDbGVhcl9sdWxsYWJ5X3VudmVpbGVkX2c0cmxpYw)\
6+
[Test1b (user: dave)](userpass1.md#!dave:nuClear_lullaby_unveiled_g4rlic)
7+
8+
[Test2a (user: dave, go to anchor-6)](anchor.md#IWRhdmU6bnVDbGVhcl9sdWxsYWJ5X3VudmVpbGVkX2c0cmxpYw#anchor-6)\
9+
[Test2b (user: dave, go to anchor-6)](anchor.md#!dave:nuClear_lullaby_unveiled_g4rlic#anchor-6)
10+
11+
[Test3a (password: m00dy#augmented#Arsonist)](onlypasswords2.md#ITptMDBkeSNhdWdtZW50ZWQjQXJzb25pc3Q)\
12+
[Test3b (password: SpotChestOilCycle22)](onlypasswords2.md#!SpotChestOilCycle22)
13+
14+
[Test4a (obfuscate: Kriechtier hau ab!)](obfuscate.md#ITpLcmllY2h0aWVyIGhhdSBhYiE)\
15+
[Test4b (obfuscate: Kriechtier hau ab!)](obfuscate.md#!Kriechtier%20hau%20ab!)
16+
17+
# Create share link
18+
19+
<div class="w3-row-padding" style="padding-left: 0px;">
20+
<div class="w3-third">
21+
<label for="share-user">username</label>
22+
<input class="w3-input w3-border w3-hover-theme w3-theme-l1" name="share-user" id="share-user" type="text" value="dave" onchange="genB64Url();">
23+
</div>
24+
<div class="w3-third">
25+
<label for="share-pass">password</label>
26+
<input class="w3-input w3-border w3-hover-theme w3-theme-l1" name="share-pass" id="share-pass" type="text" value="nuClear_lullaby_unveiled_g4rlic" onchange="genB64Url();">
27+
</div>
28+
</div>
29+
30+
<div class="w3-row-padding w3-margin-top" style="padding-left: 0px;">
31+
<div class="w3-twothird">
32+
<label for="share-output">output</label>
33+
<input class="w3-input w3-border w3-hover-theme w3-theme-l1" name="share-output" id="share-output" type="text" onchange="decB64Url();">
34+
<div id="output-length"></div>
35+
</div>
36+
</div>
37+
38+
<div class="w3-row-padding w3-margin-top" style="padding-left: 0px;">
39+
<div class="w3-twothird">
40+
<label for="share-decode">decoded</label>
41+
<code name="share-decode" id="share-decode" type="text"></code>
42+
<div id="decode-length"></div>
43+
</div>
44+
</div>
45+
46+
<script>
47+
var share_user = document.getElementById('share-user');
48+
var share_pass = document.getElementById('share-pass');
49+
var share_output = document.getElementById('share-output');
50+
var share_decode = document.getElementById('share-decode');
51+
var share_url = document.getElementById('share-url');
52+
var output_length = document.getElementById('output-length');
53+
var decode_length = document.getElementById('decode-length');
54+
var url_length = document.getElementById('url-length');
55+
56+
57+
//https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
58+
function base64ToBytes(base64) {
59+
const binString = atob(base64);
60+
return Uint8Array.from(binString, (m) => m.codePointAt(0));
61+
}
62+
63+
function bytesToBase64(bytes) {
64+
const binString = Array.from(bytes, (x) => String.fromCodePoint(x)).join("");
65+
return btoa(binString);
66+
}
67+
68+
function base64url_decode(input) {
69+
try {
70+
return new TextDecoder().decode(base64ToBytes(input.replace(/-/g, '+').replace(/_/g, '/')));
71+
}
72+
catch (err) {
73+
return "!ERROR!";
74+
}
75+
}
76+
function base64url_encode(input) {
77+
try {
78+
return bytesToBase64(new TextEncoder().encode(input)).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
79+
}
80+
catch (err) {
81+
return "!ERROR!";
82+
}
83+
}
84+
85+
86+
function genB64Url() {
87+
const str = "!" + share_user.value + ":" + share_pass.value;
88+
let encstr = base64url_encode(str);
89+
share_output.value = '#' + encstr;
90+
decB64Url()
91+
}
92+
93+
function decB64Url() {
94+
let encstr = share_output.value.substr(1);
95+
output_length.innerHTML = "length: " + encstr.length;
96+
let decstr = base64url_decode(encstr)
97+
share_decode.textContent = decstr;
98+
decode_length.innerHTML = "length: " + decstr.length;
99+
}
100+
genB64Url();
101+
102+
</script>
103+
104+
# Sharelinks output
105+
106+
sharelinks.txt
107+
108+
```
109+
{% include "../../sharelinks.txt" %}
110+
```

0 commit comments

Comments
 (0)