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>
The
ChaosTextDecrypter
will use String
as input and output
type.-
Constructor Summary
ConstructorDescriptionChaosTextDecrypter
(ChaosKey aKey) Instantiates a newChaosTextDecrypter
using the givenChaosKey
for decrypting. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
int
toDecrypted
(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset) toDecrypted
(String aEncrypted) 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.Decrypter
decrypt, decrypt
-
Constructor Details
-
ChaosTextDecrypter
Instantiates a newChaosTextDecrypter
using the givenChaosKey
for decrypting.- Parameters:
aKey
- TheChaosKey
to use for decrypting.
-
-
Method Details
-
toDecrypted
-
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
-