public void NewProvider()
        {
            DpapiSymmetricCryptoProvider symm = new DpapiSymmetricCryptoProvider();

            CryptographyConfigurationView cryptoConfigurationView = new TestCryptographyConfigurationView();
            symm.Initialize(cryptoConfigurationView);
            byte[] encBytes = symm.Encrypt(plainText);
            byte[] decBytes = symm.Decrypt(encBytes);
            Assert.IsTrue(CryptographyUtility.CompareBytes(decBytes, plainText));
        }
 SymmetricProviderHelper CreateHelper(DataProtectionScope mode,
                                      byte[] entropy)
 {
     DpapiSymmetricCryptoProvider provider = new DpapiSymmetricCryptoProvider(mode, entropy, instrumentationProvider);
     return new SymmetricProviderHelper(provider);
 }