|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Decoder
This class takes a BigInteger as encoded text and decodes it into an array of bytes.
Constructor Summary | |
Decoder(java.math.BigInteger d,
java.math.BigInteger n)
Constructs a new Decoder |
Method Summary | |
byte[] |
decode(java.math.BigInteger c)
This takes a BigInteger representing an encoded value and decodes it into an array of bytes representing plain text |
static void |
main(java.lang.String[] args)
Tests the Decoder class |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Decoder(java.math.BigInteger d, java.math.BigInteger n)
d,
- n
These contain values for the decoding exponent and the modulus
Method Detail |
public byte[] decode(java.math.BigInteger c)
c
- This contains a BigIntegerpublic static void main(java.lang.String[] args) throws java.io.IOException
args[]
- This parameter will be left empty
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |