Package org.refcodes.security.alt.chaos
Class ChaosEncrypterImpl
- java.lang.Object
-
- org.refcodes.security.alt.chaos.ChaosEncrypterImpl
-
- All Implemented Interfaces:
ChaosEncrypter
,org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
public class ChaosEncrypterImpl extends Object implements ChaosEncrypter
The Class ChaosEncrypterImpl.- Author:
- steiner
-
-
Constructor Summary
Constructors Constructor Description ChaosEncrypterImpl(double x0, double a, double s)
Instantiates a new chaos encrypter impl.ChaosEncrypterImpl(ChaosKey aKey)
Instantiates a new chaos encrypter impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
toEncrypted(byte[] aDecrypted)
int
toEncrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset)
-
-
-
Constructor Detail
-
ChaosEncrypterImpl
public ChaosEncrypterImpl(double x0, double a, double s)
Instantiates a new chaos encrypter impl.- Parameters:
x0
- the x 0a
- the as
- the s
-
ChaosEncrypterImpl
public ChaosEncrypterImpl(ChaosKey aKey)
Instantiates a new chaos encrypter impl.- Parameters:
aKey
- the key
-
-
Method Detail
-
toEncrypted
public byte[] toEncrypted(byte[] aDecrypted) throws org.refcodes.security.EncryptionException
- Specified by:
toEncrypted
in interfaceorg.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
- Throws:
org.refcodes.security.EncryptionException
-
toEncrypted
public int toEncrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) throws ShortBufferException, org.refcodes.security.EncryptionException
- Specified by:
toEncrypted
in interfaceorg.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
- Throws:
ShortBufferException
org.refcodes.security.EncryptionException
-
-