Affine Cipher using 2 alphabet

From: Florian Poeck (fp_at_vido.info)
Date: 04/28/05


Date: 28 Apr 2005 07:40:06 -0700

Hi

i have the following problem:
//
Crypted text using Affine Cipher with 2 alphabet.
Affine cipher = C= a*P+b

what is the best way to encrypt such a cipher ?
As there are 2 Alp. there are lots of possibilities i think.
Any idea ?

//////////////////////////////////////////
Crypted Text:
//
TFNSHJNYAXEXACDHAYBUBYJDQCDKJGADEHFQNCQPTFXAHRLJNQZCNNRGHSNQCHZXQDEFCJJSCFUZSNEBWDEXMBNSNQCGWFVNXAODJAEFCRUHVFFMZCNNRAEFUHATTAFCHEHXKCHZ

//////////////////////////////////////////
Splitted into 2 Strings:
//

Alp 1: TNHNAEADABBJQDJAEFNQTXHLNZNRHNCZQECJCUSEWEMNNCWVXOJECUVFZNREUATFHHKH
FREQUENCY ANALYSIS:
A : 5, Percentage : 7%
B : 2, Percentage : 2%
C : 5, Percentage : 7%
D : 2, Percentage : 2%
E : 7, Percentage : 10%
F : 3, Percentage : 4%
G : 0, Percentage : 0%
H : 6, Percentage : 8%
I : 0, Percentage : 0%
J : 4, Percentage : 5%
K : 1, Percentage : 1%
L : 1, Percentage : 1%
M : 1, Percentage : 1%
N : 9, Percentage : 13%
O : 1, Percentage : 1%
P : 0, Percentage : 0%
Q : 3, Percentage : 4%
R : 2, Percentage : 2%
S : 1, Percentage : 1%
T : 3, Percentage : 4%
U : 3, Percentage : 4%
V : 2, Percentage : 2%
W : 2, Percentage : 2%
X : 2, Percentage : 2%
Y : 0, Percentage : 0%
Z : 3, Percentage : 4%

Alp 2: FSJYXXCHYUYDCKGDHQCPFARJQCNGSQHXDFJSFZNBDXBSQGFNADAFRHFMCNAFHTACEXCZ
FREQUENCY ANALYSIS:
A : 5, Percentage : 7%
B : 2, Percentage : 2%
C : 7, Percentage : 10%
D : 5, Percentage : 7%
E : 1, Percentage : 1%
F : 8, Percentage : 11%
G : 3, Percentage : 4%
H : 5, Percentage : 7%
I : 0, Percentage : 0%
J : 3, Percentage : 4%
K : 1, Percentage : 1%
L : 0, Percentage : 0%
M : 1, Percentage : 1%
N : 4, Percentage : 5%
O : 0, Percentage : 0%
P : 1, Percentage : 1%
Q : 4, Percentage : 5%
R : 2, Percentage : 2%
S : 4, Percentage : 5%
T : 1, Percentage : 1%
U : 1, Percentage : 1%
V : 0, Percentage : 0%
W : 0, Percentage : 0%
X : 5, Percentage : 7%
Y : 3, Percentage : 4%
Z : 2, Percentage : 2%

 
Greetings

Florian