From 7bba84ae63a995f579363e5c27ee778f1c320644 Mon Sep 17 00:00:00 2001 From: tassadarius Date: Tue, 8 Mar 2022 21:43:33 +0100 Subject: [PATCH 1/2] NOISSUE Fix/Update Link checker script and fix dead links (#255) * NOISSUE [DevelopmentTools] Fix and extend link availability check Add the following features/fix the following mistakes: * Fake browser User-Agent in the header as some sites block scripts * Add parameter to search html files by pattern and default it to 'nl/' directories * Add parameter to exclude certain project names and let it default to 'org.jcryptool.core.nl' as this uses another link format. * Add parameter for an ignore file. The ignore file can contain links which are queried nevertheless. But if they fail they will not be counted as errors. A specific reason can be specified so it will only count as ignored if that reason is matched. It defaults to ./ignore_links.txt Add the ignored information to the summary * Add meaningful return value: 0 if all links reachable or ignored, 1 if any link was not reachable (failed). * Fix timeout case not being counted as timeout * Improve formatting * NOISSUE [OnlineHelp] Fix/Update dead links --- .../help/users/algorithms/signature/toc.html | 2 +- .../help/users/cryptology/crypto_methods.html | 2 +- .../nl/de/help/users/cryptology/toc.html | 2 +- .../nl/de/help/users/games/toc.html | 2 +- org.jcryptool.core.help/nl/de/single/RSA.html | 2 +- .../help/users/algorithms/signature/toc.html | 2 +- .../help/users/cryptology/crypto_methods.html | 2 +- .../nl/en/help/users/cryptology/toc.html | 2 +- .../nl/en/help/users/games/toc.html | 2 +- .../nl/en/help/users/visualizations/toc.html | 2 +- org.jcryptool.core.help/nl/en/single/RSA.html | 2 +- org.jcryptool.releng/helper/ignored_links.txt | 4 + .../helper/link_availability_checker.py | 205 +++++++++++++++--- 13 files changed, 186 insertions(+), 45 deletions(-) create mode 100644 org.jcryptool.releng/helper/ignored_links.txt diff --git a/org.jcryptool.core.help/nl/de/help/users/algorithms/signature/toc.html b/org.jcryptool.core.help/nl/de/help/users/algorithms/signature/toc.html index 11cd170878..fb9563dec9 100644 --- a/org.jcryptool.core.help/nl/de/help/users/algorithms/signature/toc.html +++ b/org.jcryptool.core.help/nl/de/help/users/algorithms/signature/toc.html @@ -30,7 +30,7 @@

Über Signaturen

Digitale Signaturen sind eine Standardkomponente der meisten kryptografischen Protokoll-Suiten. Sie werden häufig für Software-Verteilung, Finanztransaktionen, Vertragsverwaltungssoftware und in weiteren Fällen verwendet, in denen es wichtig ist, Fälschungen oder Manipulationen zu erkennen. Digitale Signaturen werden oft verwendet, um elektronische Signaturen zu implementieren.

-

Das folgende Bild zeigt eine visuelle Darstellung des Signier- und Verifizierungsprozesses (Diagramm Digitale Signatur von Acdx, lizenziert unter CC0).

+

Das folgende Bild zeigt eine visuelle Darstellung des Signier- und Verifizierungsprozesses (Diagramm Digitale Signatur von Acdx, lizenziert unter CC BY-SA 3.0).

Visuelle Darstellung des Signier- und Verifizierungsprozesses diff --git a/org.jcryptool.core.help/nl/de/help/users/cryptology/crypto_methods.html b/org.jcryptool.core.help/nl/de/help/users/cryptology/crypto_methods.html index ce65686b64..9b1f60bd82 100644 --- a/org.jcryptool.core.help/nl/de/help/users/cryptology/crypto_methods.html +++ b/org.jcryptool.core.help/nl/de/help/users/cryptology/crypto_methods.html @@ -9,7 +9,7 @@

Kryptografische Verfahren

-

Britannica (http://www.britannica.com) beginnt seine Definition folgendermaßen:

+

Britannica (http://www.britannica.com) beginnt seine Definition folgendermaßen:

Kryptologie (vom Griechischen kryptós, "versteckt," und lógos, "Wort") ist die Wissenschaft von sicherer (allgemein geheimer) Kommunikation. Diese Sicherheit bedingt, dass die berechtigten Teilnehmer in der Lage sind, eine Nachricht mit Hilfe eines Schlüssels in einen Geheimtext zu transferieren und zurück. Obwohl der Geheimtext für jemand ohne den geheimen Schlüssel unlesbar und unfälschbar ist, kann der berechtigte Empfänger entweder das Chiffrat entschlüsseln, um die den verborgenen Klartext wieder zu erhalten, oder verifizieren, dass die Nachricht aller Wahrscheinlichkeit nach von jemand geschickt wurde, der den richtigen Schlüssel besaß.

diff --git a/org.jcryptool.core.help/nl/de/help/users/cryptology/toc.html b/org.jcryptool.core.help/nl/de/help/users/cryptology/toc.html index 1adc620016..6528a07c54 100644 --- a/org.jcryptool.core.help/nl/de/help/users/cryptology/toc.html +++ b/org.jcryptool.core.help/nl/de/help/users/cryptology/toc.html @@ -16,7 +16,7 @@

Kryptologie

Weitere Informationen zum Einstieg finden Sie unter:


diff --git a/org.jcryptool.core.help/nl/de/help/users/games/toc.html b/org.jcryptool.core.help/nl/de/help/users/games/toc.html index 4af76ebbc1..35ca1ce71c 100644 --- a/org.jcryptool.core.help/nl/de/help/users/games/toc.html +++ b/org.jcryptool.core.help/nl/de/help/users/games/toc.html @@ -10,7 +10,7 @@

Spiele

Das JCT-Hauptmenü Spiele (in der Standard-Perspektive) hat 3 Einträge. Alle 3 Spiele haben Krypto-Bezug. Beispielsweise das - Zahlenhai-Spiel, das Schülern spielerisch helfen kann, Teiler und Primzahlen besser zu verstehen. Hier wurde Lernstoff didaktisch verpackt.

+ Zahlenhai-Spiel, das Schülern spielerisch helfen kann, Teiler und Primzahlen besser zu verstehen. Hier wurde Lernstoff didaktisch verpackt.



diff --git a/org.jcryptool.core.help/nl/de/single/RSA.html b/org.jcryptool.core.help/nl/de/single/RSA.html index 39709c9c5f..e8c573d0e6 100644 --- a/org.jcryptool.core.help/nl/de/single/RSA.html +++ b/org.jcryptool.core.help/nl/de/single/RSA.html @@ -47,7 +47,7 @@

Quellen