Exemplo n.º 1
0
        public Steganographer(IConfidential confidential)
        {
            if (confidential.Key.HasValue && confidential.Key.Value < 1000)
            {
                throw new SteganographyException("The password specified for confidential information must be at least 999");
            }

            Confidential = confidential;
        }
 /// <summary>
 /// Create a steganographer for injects hidden data into the bitmap.
 /// </summary>
 /// <param name="confidential">Secret data</param>
 /// <param name="cover">Cover image</param>
 public ImageCoveredSteganography(IConfidential confidential, Bitmap cover)
     : base(confidential) => CoverImage = cover;