i forgot
All checks were successful
Deploy / trigger (push) Successful in 23s

This commit is contained in:
2026-04-20 22:39:59 +02:00
parent 48f0c35039
commit e242ea28b5

View File

@@ -18,7 +18,7 @@ public class Caesar {
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);
decoded[i] = alphabet.charAt(alphabet.indexOf((encoded[i] + key) % 26));
}
bruteforce[key] = String.valueOf(encoded);
}