part2
Class PohligHellman

java.lang.Object
  extended bypart2.PohligHellman

public class PohligHellman
extends java.lang.Object


Constructor Summary
PohligHellman(java.math.BigInteger p, java.math.BigInteger e)
          A constructor to initialize a Pohlig-Hellman cipher with odd prime p and exponent e.
 
Method Summary
 java.lang.String decrypt(java.util.AbstractList cipherText)
          Decryption.
 java.util.AbstractList encrypt(java.lang.String s)
          Encryption.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PohligHellman

public PohligHellman(java.math.BigInteger p,
                     java.math.BigInteger e)
              throws java.lang.Exception
A constructor to initialize a Pohlig-Hellman cipher with odd prime p and exponent e.

Throws:
Exception.
java.lang.Exception
Method Detail

encrypt

public java.util.AbstractList encrypt(java.lang.String s)
                               throws java.lang.Exception
Encryption.

Throws:
Exception.
java.lang.Exception

decrypt

public java.lang.String decrypt(java.util.AbstractList cipherText)
                         throws java.lang.Exception
Decryption.

Throws:
Exception.
java.lang.Exception