FiddlerCoreAPIFree_4_6_20191_7809


FiddlerCoreAPIFree_4_6_20191_7809,是从官网下载的 .net安装API 框架,方便用来开发net的 爬虫应用程序
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Security.Cryptography;

using Fiddler;

namespace FiddlerCore.Demo.NetCore
{
    public class PrivateKeyDeleter
    {
        private readonly IDictionary> privateKeyDeleters =
            new Dictionary>();

        public PrivateKeyDeleter()
        {
            this.AddPrivateKeyDeleter(this.DefaultRSACngPrivateKeyDeleter);
            this.AddPrivateKeyDeleter(this.DefaultRSACryptoServiceProviderPrivateKeyDeleter);
        }

        public void AddPrivateKeyDeleter(Action keyDeleter) where T : AsymmetricAlgorithm
        {
            this.privateKeyDeleters[typeof(T)] = (a) => keyDeleter((T)a);
        }

        public void DeletePrivateKey(AsymmetricAlgorithm a)
        {
            for (Type t = a.GetType(); t != null; t = t.baseType)
            {
                Action deleter;
                if (this.privateKeyDeleters.TryGetValue(t out deleter))
                {
                    deleter(a);
                    return;
                }
            }

            FiddlerApplication.Log.LogString(“No private key deleter found for “ + a.GetType());
        }

        private void DefaultRSACryptoServiceProviderPrivateKeyDeleter(RSACryptoServiceProvider rsaCryptoServiceProvider)
        {
            rsaCryptoServiceProvider.PersistKeyInCsp = false;
            rsaCryptoServiceProvider.Clear();
        }

        private void DefaultRSACngPrivateKeyDeleter(RSACng rsaCng)
        {
            rsaCng.Key.Delete();
            rsaCng.Clear();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件     2199816  2019-01-29 21:00  FiddlerCoreAPIFreeSetup.exe
     文件         774  2019-01-29 20:57  FiddlerCore for .NET Standard BetaDemoFiddlerCore.Demo.NetCore.csproj
     文件         175  2019-01-29 20:57  FiddlerCore for .NET Standard BetaDemoNuGet.Config
     文件        1745  2018-10-25 16:37  FiddlerCore for .NET Standard BetaDemoPrivateKeyDeleter.cs
     文件       21752  2019-01-29 20:57  FiddlerCore for .NET Standard BetaDemoProgram.cs
     文件       10561  2018-10-25 16:37  FiddlerCore for .NET Standard BetaDemoSAZ-DotNetZip.cs
     文件      691961  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.1.20191.7809-beta.nupkg
     文件       15907  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.API.1.20191.7809-beta.nupkg
     文件       12424  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.PlatformExtensions.1.20191.7809-beta.nupkg
     文件       16225  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.PlatformExtensions.Linux.1.20191.7809-beta.nupkg
     文件       16430  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.PlatformExtensions.Mac.1.20191.7809-beta.nupkg
     文件       26558  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.PlatformExtensions.Windows.1.20191.7809-beta.nupkg
     文件       16492  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetFiddlerCore.Utilities.1.20191.7809-beta.nupkg
     文件       70840  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetTelerik.NetworkConnections.0.1.1.nupkg
     文件       28294  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetTelerik.NetworkConnections.Linux.0.1.1.nupkg
     文件       30763  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetTelerik.NetworkConnections.Mac.0.1.1.nupkg
     文件       38259  2019-01-29 21:00  FiddlerCore for .NET Standard BetaNuGetTelerik.NetworkConnections.Windows.0.1.1.nupkg

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)