mirror of
https://github.com/KyleBanks/XOREncryption.git
synced 2023-08-10 21:13:15 +03:00
Fixing indentation
This commit is contained in:
parent
21df96ba59
commit
4379fe3bc6
@ -3,9 +3,9 @@ def encryptDecrypt(String input) {
|
|||||||
def output = []
|
def output = []
|
||||||
|
|
||||||
for(int i = 0; i < input.length(); i++) {
|
for(int i = 0; i < input.length(); i++) {
|
||||||
int a = input.charAt(i) as int;
|
int a = input.charAt(i) as int;
|
||||||
int b = (key[i % key.size()] as char) as int
|
int b = (key[i % key.size()] as char) as int
|
||||||
output.add((a ^ b) as char)
|
output.add((a ^ b) as char)
|
||||||
}
|
}
|
||||||
|
|
||||||
output.join("")
|
output.join("")
|
||||||
|
Loading…
Reference in New Issue
Block a user