Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main;
- public class main {
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- char[] schlüssel = {'t', 'e', 's', 't'};
- char[] toChifre = {'t', 'e', 's', 't'};
- int i = 0;
- int[] verschlüsselt = {1, 1, 1, 1, 1};
- try {
- while(i<3)
- {
- verschlüsselt[i] = toChifre[i]^schlüssel[i];
- i++;
- }
- } catch(Exception e) {
- System.out.println("Error. Failded to XOR");
- }
- i = 0;
- while(i<3)
- {
- System.out.print(verschlüsselt[i]);
- i++;
- }
- }
- }
Add Comment
Please, Sign In to add comment