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