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
ConstructorsConstructorDescriptionChaosTextDecrypter(ChaosKey aKey) Instantiates a newChaosTextDecrypterusing the givenChaosKeyfor decrypting. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()inttoDecrypted(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, waitMethods inherited from interface org.refcodes.security.Decrypter
decrypt, decrypt
-
Constructor Details
-
ChaosTextDecrypter
Instantiates a newChaosTextDecrypterusing the givenChaosKeyfor decrypting.- Parameters:
aKey- TheChaosKeyto 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:
disposein interfaceorg.refcodes.mixin.Disposable
-