Class ChaosTextDecrypterImpl

  • All Implemented Interfaces:
    ChaosTextDecrypter, org.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>


    public class ChaosTextDecrypterImpl
    extends java.lang.Object
    implements ChaosTextDecrypter
    The Class ChaosTextDecrypterImpl.
    Author:
    steiner
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int toDecrypted​(byte[] aInput, int aInputOffset, int aInputLength, byte[] aOutput, int aOutputOffset)
      java.lang.String toDecrypted​(java.lang.String aEncrypted)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChaosTextDecrypterImpl

        public ChaosTextDecrypterImpl​(double x0,
                                      double a,
                                      double s)
        Instantiates a new chaos text decrypter impl.
        Parameters:
        x0 - the x 0
        a - the a
        s - the s
      • ChaosTextDecrypterImpl

        public ChaosTextDecrypterImpl​(ChaosKey aKey)
        Instantiates a new chaos text decrypter impl.
        Parameters:
        aKey - the key
    • Method Detail

      • toDecrypted

        public java.lang.String toDecrypted​(java.lang.String aEncrypted)
                                     throws org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>
        Throws:
        org.refcodes.security.DecryptionException
      • toDecrypted

        public int toDecrypted​(byte[] aInput,
                               int aInputOffset,
                               int aInputLength,
                               byte[] aOutput,
                               int aOutputOffset)
                        throws javax.crypto.ShortBufferException,
                               org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<java.lang.String,java.lang.String,org.refcodes.security.DecryptionException>
        Throws:
        javax.crypto.ShortBufferException
        org.refcodes.security.DecryptionException