public class ChaosTextEncrypterImpl extends Object implements ChaosTextEncrypter
Constructor and Description |
---|
ChaosTextEncrypterImpl(ChaosKey aKey)
Instantiates a new chaos text encrypter impl.
|
ChaosTextEncrypterImpl(double x0,
double a,
double s)
Instantiates a new chaos text encrypter impl.
|
Modifier and Type | Method and Description |
---|---|
int |
toEncrypted(byte[] aInput,
int aInputOffset,
int aInputLength,
byte[] aOutput,
int aOutputOffset) |
String |
toEncrypted(String aDecrypted) |
public ChaosTextEncrypterImpl(double x0, double a, double s)
x0
- the x 0a
- the as
- the spublic ChaosTextEncrypterImpl(ChaosKey aKey)
aKey
- the keypublic String toEncrypted(String aDecrypted) throws org.refcodes.security.EncryptionException
public int toEncrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) throws ShortBufferException, org.refcodes.security.EncryptionException
toEncrypted
in interface org.refcodes.security.Encrypter<String,String,org.refcodes.security.EncryptionException>
ShortBufferException
org.refcodes.security.EncryptionException
Copyright © 2018. All rights reserved.