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<String,String,org.refcodes.security.DecryptionException>
public class ChaosTextDecrypterImpl extends 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.ChaosTextDecrypterImpl(String aSecret)
Instantiates a new chaos text decrypter.ChaosTextDecrypterImpl(ChaosKey aKey)
Instantiates a new chaos text decrypter.
-
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)
String
toDecrypted(String aEncrypted)
-
-
-
Constructor Detail
-
ChaosTextDecrypterImpl
public ChaosTextDecrypterImpl(double x0, double a, double s)
Instantiates a new chaos text decrypter.- Parameters:
x0
- the x 0a
- the as
- the s
-
ChaosTextDecrypterImpl
public ChaosTextDecrypterImpl(ChaosKey aKey)
Instantiates a new chaos text decrypter.- Parameters:
aKey
- the key
-
-
Method Detail
-
toDecrypted
public String toDecrypted(String aEncrypted) throws org.refcodes.security.DecryptionException
-
toDecrypted
public int toDecrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) throws ShortBufferException, org.refcodes.security.DecryptionException
- Specified by:
toDecrypted
in interfaceorg.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
- Throws:
ShortBufferException
org.refcodes.security.DecryptionException
-
-