Simple function to brute force all possible combinations of standard Caesar cipher
- Replace "exxegoexsrgi" with your search string and check answer 👍
for id, answer := range BruteForceCaesarCipher("exxegoexsrgi") {
// Check answer here if not printing whole array
if answer == "ATTACKATONCE" {
fmt.Println(id, "SUCCESS: ", answer)
}
}