This commit is contained in:
@@ -10,4 +10,19 @@ public class Caesar {
|
|||||||
}
|
}
|
||||||
return String.valueOf(encoded);
|
return String.valueOf(encoded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String[] decode(String ciphertext){
|
||||||
|
String alphabet = "abcdefghijklmnopqrstuvwxyz";
|
||||||
|
char encoded[] = ciphertext.toCharArray();
|
||||||
|
char decoded[] = new char[ciphertext.length()];
|
||||||
|
String bruteforce[] = new String[26];
|
||||||
|
for(int key = 0; key < alphabet.length(); key++){
|
||||||
|
for(int i = 0; i < ciphertext.length(); i++){
|
||||||
|
decoded[i] = alphabet.charAt(alphabet.indexOf(encoded[i]) + key % 26);
|
||||||
|
}
|
||||||
|
bruteforce[key] = String.valueOf(encoded);
|
||||||
|
}
|
||||||
|
return bruteforce;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<a href="/privacy-policy/">Privacy Policy</a> |
|
<a href="/privacy-policy/">Privacy Policy</a> |
|
||||||
<a href="#"><i class="fa-brands fa-github"></i> GitHub</a> <br><br>
|
<a href="https://git.vps.francescomancuso.it/elisabetta/cryptoseals"><i class="fa-solid fa-mug-saucer"></i> Gitea</a> <br><br>
|
||||||
© <span id="year"></span> CryptoSeals Team
|
© <span id="year"></span> CryptoSeals Team
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<a href="/privacy-policy/">Privacy Policy</a> |
|
<a href="/privacy-policy/">Privacy Policy</a> |
|
||||||
<a href="#"><i class="fa-brands fa-github"></i> GitHub</a> <br><br>
|
<a href="https://git.vps.francescomancuso.it/elisabetta/cryptoseals"><i class="fa-solid fa-mug-saucer"></i> Gitea</a> <br><br>
|
||||||
© <span id="year"></span> CryptoSeals Team
|
© <span id="year"></span> CryptoSeals Team
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<a href="/privacy-policy/">Privacy Policy</a> |
|
<a href="/privacy-policy/">Privacy Policy</a> |
|
||||||
<a href="#"><i class="fa-brands fa-github"></i> GitHub</a> <br><br>
|
<a href="https://git.vps.francescomancuso.it/elisabetta/cryptoseals"><i class="fa-solid fa-mug-saucer"></i> Gitea</a> <br><br>
|
||||||
© <span id="year"></span> CryptoSeals Team
|
© <span id="year"></span> CryptoSeals Team
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>CryptoSeals - Il Team</title>
|
<title>CryptoSeals - Il Team</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> nn
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script src="team.js" defer></script>
|
<script src="team.js" defer></script>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
<a href="/privacy-policy/">Privacy Policy</a> |
|
<a href="/privacy-policy/">Privacy Policy</a> |
|
||||||
<a href="#"><i class="fa-brands fa-github"></i> GitHub</a> <br><br>
|
<a href="https://git.vps.francescomancuso.it/elisabetta/cryptoseals"><i class="fa-solid fa-mug-saucer"></i> Gitea</a> <br><br>
|
||||||
© <span id="year"></span> CryptoSeals Team
|
© <span id="year"></span> CryptoSeals Team
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user