Question: Decrypt the ciphertext ( java code, give output that is correct and i will upvote ) encrypted by a simple one time cipher ( i

Decrypt the ciphertext (java code, give output that is correct and i will upvote) encrypted by a simple one time cipher (i.e., a specific stream cipher)
using PGM as a random number generator and the random numbers generated act as a keystream.
1. Let M=95*95*95; seed=1000;
2. suppose x=x1x2...xn is plaintext string with each xi<=M
3. keystream k=k1k2...kn, where k1=PGM(seed),..., ki=PGM(seed+i-1)...,kn=PGM(seed+n-1).
4. ciphertext string y=y1y2...yn, where yi=(xi+ki) mod M.
5. the plaintext string x=x1x2...xn is obtained by encoding an english text E=e1e2..... as follows:
5.1. There are 95 characters given in a table and each character has its index (0 to 94)
(NOTE: the beginning character is space and the table should be treated as one dimension.)
5.2. Group english text into blocks of three characters as e1e2e3 e4e5e6 e7e8e9...
5.3 Form x1,x2,... as follows: x1=(index of e1)*95*95+(index of e2)*95+(index of e3),
x2=(index of e4)*95*95+(index of e5)*95+(index of e6),
......
6. The PGM logarithmic signatures and the ciphertext are seen below.
7. When you decrypt, please remeber to change negative modular into positive.
8. The permutations in logarithmic signatures are expressed in standard notation.
Ciphertext:
lnTg7_yN--=u;PPJR(Vbw,MK3yjvyE
@P?*udYh=A\AS*S}vlVssWBs8^xIn!
aj@`XL@nQZF\F)X#17a~'_16}r3j>5
%>RCw#Lrb,Vdfg8?X,D.Bz%Oz-E!D6
.zv+;c3__alDaAv^MNhB27'+DdMl_'
ZVQSjiuseO%kAezn(qtV5N8*.|iFj
Z5)\F@z}{e$V1G\PhW]&j8'Z9p=,7%
nTQ{xPKU]h-R|@+i8hEZevQm!w_]/7??Zp%wJU&5rV|3W
1+oH\$#G_s o$_]W0@|1&@+Q=q%/G!
wr;4,UP^:ecuSBSEAPE'=tbNYsng~i
Wrf/5[UA"+JFY}|k/Pu*ZUnTbk-ki-
0:?9giV9n)4(63

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!