Class ChaosTextEncrypterImpl

  • All Implemented Interfaces:
    ChaosTextEncrypter, org.refcodes.security.Encrypter<java.lang.String,java.lang.String,org.refcodes.security.EncryptionException>


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

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

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

      • ChaosTextEncrypterImpl

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

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

      • toEncrypted

        public java.lang.String toEncrypted​(java.lang.String aDecrypted)
                                     throws org.refcodes.security.EncryptionException
        Specified by:
        toEncrypted in interface org.refcodes.security.Encrypter<java.lang.String,java.lang.String,org.refcodes.security.EncryptionException>
        Throws:
        org.refcodes.security.EncryptionException
      • toEncrypted

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