public SymmetricEncryptor(SymmetricAlgorithm algorithm = null, SymmetricEncryptorOptions options = null, HashAlgorithm hashAlgorithm = null)
 {
     //_algorithm = algorithm != null ? algorithm : Aes.Create();
     _algorithm = algorithm != null ? algorithm : DES.Create();
     _hasher    = hashAlgorithm != null ? new Hasher(hashAlgorithm) : new Hasher();
     Options    = SymmetricEncryptorOptions.CreateMergedInstance(options);
 }
        public static SymmetricEncryptorOptions CreateMergedInstance(SymmetricEncryptorOptions options = null)
        {
            // Merge Options with Global Options
            SymmetricEncryptorOptions result = DefaultOptionsBuilder.MergeOptions <SymmetricEncryptorOptions>(GlobalCryptographyOptions.SymmetricEncryptorOptions, options);

            return(result);
        }
 public SymmetricEncryptor(CryptoCredentials credentials,
                           SymmetricAlgorithm algorithm      = null,
                           SymmetricEncryptorOptions options = null,
                           HashAlgorithm hashAlgorithm       = null) : this(algorithm, options, hashAlgorithm)
 {
     Credentials = credentials;
 }