[Wolves] RE: Code Breaker
James Daley
j.dalley at hotmail.co.uk
Wed Dec 6 21:58:09 GMT 2006
Skipped content of type multipart/alternative-------------- next part --------------
public static void main(){
int input[] = {8,22,6,20,14,3,5,14,3,10,20,4,22,5,7,3,22,4,14,3,10,4,17,18,10,18,5,4,6,22,5};
char letter[] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char code[] = new char[27];
for (int i = 1; i <= 26; i++){
System.out.print("A as " + i + " would produce:");
System.out.println();
int count = 0;
int n = i;
while (n != code.length){
code[n] = letter[count];
n++; count++;}
n = 1;
while (n != (i)){
code[n] = letter[count];
n++; count++;}
for (int x = 0; x < input.length; x++){System.out.print(code[input[x]] + " ");}
System.out.println();
}
}
This outputs =>
A as 1 would produce:
H V F T N C E N C J T D V E G C V D N C J D Q R J R E D F V E
A as 2 would produce:
G U E S M B D M B I S C U D F B U C M B I C P Q I Q D C E U D
A as 3 would produce:
F T D R L A C L A H R B T C E A T B L A H B O P H P C B D T C
A as 4 would produce:
E S C Q K Z B K Z G Q A S B D Z S A K Z G A N O G O B A C S B
A as 5 would produce:
D R B P J Y A J Y F P Z R A C Y R Z J Y F Z M N F N A Z B R A
A as 6 would produce:
C Q A O I X Z I X E O Y Q Z B X Q Y I X E Y L M E M Z Y A Q Z
A as 7 would produce:
B P Z N H W Y H W D N X P Y A W P X H W D X K L D L Y X Z P Y
A as 8 would produce:
A O Y M G V X G V C M W O X Z V O W G V C W J K C K X W Y O X
A as 9 would produce:
Z N X L F U W F U B L V N W Y U N V F U B V I J B J W V X N W
A as 10 would produce:
Y M W K E T V E T A K U M V X T M U E T A U H I A I V U W M V
A as 11 would produce:
X L V J D S U D S Z J T L U W S L T D S Z T G H Z H U T V L U
A as 12 would produce:
W K U I C R T C R Y I S K T V R K S C R Y S F G Y G T S U K T
A as 13 would produce:
V J T H B Q S B Q X H R J S U Q J R B Q X R E F X F S R T J S
A as 14 would produce:
U I S G A P R A P W G Q I R T P I Q A P W Q D E W E R Q S I R
A as 15 would produce:
T H R F Z O Q Z O V F P H Q S O H P Z O V P C D V D Q P R H Q
A as 16 would produce:
S G Q E Y N P Y N U E O G P R N G O Y N U O B C U C P O Q G P
A as 17 would produce:
R F P D X M O X M T D N F O Q M F N X M T N A B T B O N P F O
A as 18 would produce:
Q E O C W L N W L S C M E N P L E M W L S M Z A S A N M O E N
A as 19 would produce:
P D N B V K M V K R B L D M O K D L V K R L Y Z R Z M L N D M
A as 20 would produce:
O C M A U J L U J Q A K C L N J C K U J Q K X Y Q Y L K M C L
A as 21 would produce:
N B L Z T I K T I P Z J B K M I B J T I P J W X P X K J L B K
A as 22 would produce:
M A K Y S H J S H O Y I A J L H A I S H O I V W O W J I K A J
A as 23 would produce:
L Z J X R G I R G N X H Z I K G Z H R G N H U V N V I H J Z I
A as 24 would produce:
K Y I W Q F H Q F M W G Y H J F Y G Q F M G T U M U H G I Y H
A as 25 would produce:
J X H V P E G P E L V F X G I E X F P E L F S T L T G F H X G
A as 26 would produce:
I W G U O D F O D K U E W F H D W E O D K E R S K S F E G W F
More information about the Wolves
mailing list