java.lang.Object
org.refcodes.security.alt.chaos.ChaosEncrypter
- All Implemented Interfaces:
org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
public class ChaosEncrypter extends Object implements org.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
The
ChaosEncrypter
will use byte arrays as input and output types.-
Constructor Summary
Constructors Constructor Description ChaosEncrypter(double x0, double a, double s)
Instantiates a new chaos encrypter impl.ChaosEncrypter(ChaosKey aKey)
Instantiates a new chaos encrypter impl. -
Method Summary
Modifier and Type Method Description byte[]
toEncrypted(byte[] aDecrypted)
int
toEncrypted(byte[] aBuffer, int aOffset, int aLength, byte[] aOutBuffer, int aOutOffset)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.security.Encrypter
encrypt, encrypt
-
Constructor Details
-
ChaosEncrypter
public ChaosEncrypter(double x0, double a, double s)Instantiates a new chaos encrypter impl.- Parameters:
x0
- the x 0a
- the as
- the s
-
ChaosEncrypter
Instantiates a new chaos encrypter impl.- Parameters:
aKey
- the key
-
-
Method Details
-
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[] aBuffer, int aOffset, int aLength, byte[] aOutBuffer, int aOutOffset) throws org.refcodes.security.EncryptionException- Specified by:
toEncrypted
in interfaceorg.refcodes.security.Encrypter<byte[],byte[],org.refcodes.security.EncryptionException>
- Throws:
org.refcodes.security.EncryptionException
-