Package org.refcodes.security.alt.chaos
Class ChaosTextDecrypterImpl
- java.lang.Object
-
- org.refcodes.security.alt.chaos.ChaosTextDecrypterImpl
-
- All Implemented Interfaces:
ChaosTextDecrypter
,org.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>
public class ChaosTextDecrypterImpl extends java.lang.Object implements ChaosTextDecrypter
The Class ChaosTextDecrypterImpl.- Author:
- steiner
-
-
Constructor Summary
Constructors Constructor Description ChaosTextDecrypterImpl(double x0, double a, double s)
Instantiates a new chaos text decrypter impl.ChaosTextDecrypterImpl(ChaosKey aKey)
Instantiates a new chaos text decrypter impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
toDecrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset)
java.lang.String
toDecrypted(java.lang.String aEncrypted)
-
-
-
Constructor Detail
-
ChaosTextDecrypterImpl
public ChaosTextDecrypterImpl(double x0, double a, double s)
Instantiates a new chaos text decrypter impl.- Parameters:
x0
- the x 0a
- the as
- the s
-
ChaosTextDecrypterImpl
public ChaosTextDecrypterImpl(ChaosKey aKey)
Instantiates a new chaos text decrypter impl.- Parameters:
aKey
- the key
-
-
Method Detail
-
toDecrypted
public java.lang.String toDecrypted(java.lang.String aEncrypted) throws org.refcodes.security.DecryptionException
- Specified by:
toDecrypted
in interfaceorg.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>
- Throws:
org.refcodes.security.DecryptionException
-
toDecrypted
public int toDecrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) throws javax.crypto.ShortBufferException, org.refcodes.security.DecryptionException
- Specified by:
toDecrypted
in interfaceorg.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>
- Throws:
javax.crypto.ShortBufferException
org.refcodes.security.DecryptionException
-
-