Class ChaosTextDecrypterImpl

    • Constructor Detail

      • ChaosTextDecrypterImpl

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

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

        public ChaosTextDecrypterImpl​(String aSecret)
        Instantiates a new chaos text decrypter.
        Parameters:
        aSecret - the secret from which to derive a ChaosKey.
    • Method Detail

      • toDecrypted

        public String toDecrypted​(String aEncrypted)
                           throws org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<String,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 ShortBufferException,
                               org.refcodes.security.DecryptionException
        Specified by:
        toDecrypted in interface org.refcodes.security.Decrypter<String,String,org.refcodes.security.DecryptionException>
        Throws:
        ShortBufferException
        org.refcodes.security.DecryptionException