예제 #1
0
        /// <summary>
        /// Create a copy of this cypher instance.
        /// </summary>
        /// <returns>A copy of the cypher instance, including the current encryption key.</returns>
        public override AbsASTPCypher Clone()
        {
            LeftShiftCypher l = (this.MemberwiseClone() as LeftShiftCypher);

            l.shift = 1;
            System.Console.WriteLine("\t\t\tLeftShiftCypher.Clone: Made a new copy with shift = " + l.shift);
            return(l);
        }
예제 #2
0
 private ASTPFactory()
 {
     left  = new LeftShiftCypher();
     right = new RightShiftCypher();
 }