Você está na página 1de 2

import java.util.

*;
import java.io.*;
class hillCipher
{
public staic String encode(Str enc,int offset)
{
Encrypt text=new Encrypt();
while(!text.isProbablePrime(99))
{
test=test.add(one);
}
return text;
}
public static String decode(Str dec,int offset)
{
Decrpt text=new Decrypt();
{
while(!dec.isProbablePrime(99))
{
test=test.add(one);
}
return text;
}
public static String decode(Str dec,int offset)
{
Decrypt text=new Decrypt();
{
while(!dec.isProbablePrime(99))
{
dec=dec.Text(one);
}
return text;
}
public static void main(String args[])throws java.lang.Exception;
{
Encrypt PlainText=new Encrypt();
Decrypt CipherText=new Decrypt();
while(!text(new(start)).zeros(length))
{
if(start=PlainText)
strat=start.add(one);
}
return start;
}
else
{
n=n.divide(text);
PlainText=encode(P.bitLength(),text)
}
if(start=Ciphertext)
{
start=start.add(one);
Ciphertext=decode(P.bitLength(),text)
}
else
{
System.out.println("Error text");
}
Key K=new Key();
private key static String encode(Str enc,int offset)

{
Encrypt text=new EWncrypt();
h=h.modPow(26);
return h.multiply(X.add(one));
System.out.println("Simulation of the Hill Cipher");
System.out.println("Enter the input message");
CipherText=matrixmultiply(enc);
CipherText C=new Ciphertext();
CipherText C=KP(mod 26);
C=encode(P.bitLength(),k);
{\
for(i=0;i<=n;i++)
{
CipherText C=multiply(enc);
enc[20][24];
}
for(j=0;j<=n;j++)
{
CipherText C=multiply(enc);
enc[24][20];
}
System.out.prijntln("The padded message");
PlainText=matrixinverse(dec);
PlainText P=new PlainText();
Plaintext P=decode();
P=decode(C.bhitLength(),K);
for(l=0;l<=n;l++)
{
PlainText P=matrixInverse=new MatrixInverse();
dec[20][24];
}
for(m=0;m<=n;m++)
{
PlainText P=matInv(dec);
MatrixInverse matInv=new MatrixInverse();
dec[24][20];
}
System.out.println("The decrypted message");
PlainText=encode(P.bitLength(0,tyext);
CipherText=decode(c.bitLength(),text);
InputMessage i=new InputMessage();
EncryptedMessage e=new EncryptedMessage(0;
PaddedMessage d=new PaddedMessage(0;
DecryptedMessage d=new DecryptedMessage();
System.out.println("Simulation of Hill Cipher");
x=x.mod(q);
System.out.println("Input message");
y=x.modPow(K,P);
System.out.println("Padded Message");
K=K.mod(P);
System.out.println("Output Message");
}
}

Você também pode gostar