Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jChatBox.Util
Class Decrypt

    java.lang.Object
      |
      +--jChatBox.Util.Decrypt

public class Decrypt
extends java.lang.Object

This class tranforms cipher text (OXW file) into PLAIN text. Public Key (Modulus + Exponent) included.
Don't try to implement a "KeyGen", we used asymetric encryption ;-)

Field Summary
`protected static byte[]` | `dec_table` A static array that maps ASCII code points to a 6-bit integer, or -1 for an invalid code point.
`protected static char[]` | `enc_table` A static array that maps 6-bit integers to a specific char.

Constructor Summary
`Decrypt(java.lang.String filename)` Constructor.

Method Summary
`java.lang.String` | `getPlain()` Returns plain text.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### enc_table

    protected static final char[] enc_table

  A static array that maps 6-bit integers to a specific char.

### dec_table

    protected static final byte[] dec_table

  A static array that maps ASCII code points to a 6-bit integer, or -1 for an invalid code point.

Constructor Detail

### Decrypt

    public Decrypt(java.lang.String filename)

  Constructor.

Method Detail

### getPlain

    public java.lang.String getPlain()
                              throws java.lang.Exception

  Returns plain text.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD