Package org.refcodes.security.alt.chaos
Class ChaosTextDecrypter
- java.lang.Object
-
- org.refcodes.security.alt.chaos.ChaosTextDecrypter
-
- All Implemented Interfaces:
org.refcodes.mixin.Disposable
,org.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
public class ChaosTextDecrypter extends Object implements org.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
TheChaosTextDecrypter
will useString
as input and output type.
-
-
Constructor Summary
Constructors Constructor Description ChaosTextDecrypter(ChaosKey aKey)
Instantiates a newChaosTextDecrypter
using the givenChaosKey
for decrypting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
int
toDecrypted(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset)
String
toDecrypted(String aEncrypted)
-
-
-
Constructor Detail
-
ChaosTextDecrypter
public ChaosTextDecrypter(ChaosKey aKey)
Instantiates a newChaosTextDecrypter
using the givenChaosKey
for decrypting.- Parameters:
aKey
- TheChaosKey
to use for decrypting.
-
-
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 org.refcodes.security.DecryptionException
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.refcodes.mixin.Disposable
-
-