CipherPunk 1.2.2

dotnet add package CipherPunk --version 1.2.2
                    
NuGet\Install-Package CipherPunk -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CipherPunk" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CipherPunk" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="CipherPunk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CipherPunk --version 1.2.2
                    
#r "nuget: CipherPunk, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CipherPunk@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CipherPunk&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=CipherPunk&version=1.2.2
                    
Install as a Cake Tool

CipherPunk

Library & UI for Windows Schannel CipherSuite and Elliptic Curve configuration and remote server probing. Inspired by IISCrypto

Features

  • Supports SSL2.0, SSL3.0, TLS1.0, TLS1.1, TLS1.2 & TLS1.3
  • Remote server probing
  • Protocol configuration
  • Cipher Suite configuration
  • Elliptic Curve configuration
  • Schannel configuration
  • Windows 7 to 11 & Windows Server 2008 to 2025
  • Configuration using local Group Policy (IISCrypto style)
  • Configuration using Schannel API

Available as a standalone Windows application (UI) and as a NuGet package (API).

Note: not all applications use Schannel, most browsers for example require separate configuration.

CipherPunk.UI

A Windows .NET WPF application for x86, x64 and ARM64.

ciphers

curves

remote server

documentation

CipherPunk

A NuGet package to manage Windows Schannel.

https://www.nuget.org/packages/CipherPunk

Services

  • ICipherSuiteService
    • GetLocalCngConfigurationContextIdentifiers
    • GetOperatingSystemDocumentationDefaultCipherSuiteList
    • GetOperatingSystemConfiguredCipherSuiteList
    • GetOperatingSystemActiveCipherSuiteList
    • GetOperatingSystemDefaultCipherSuiteList
    • ResetCipherSuiteListToOperatingSystemDefault
    • RemoveCipherSuite
    • AddCipherSuite
    • UpdateCipherSuiteOrder
  • IEllipticCurveIdentifierService
    • GetEllipticCurveIdentifiers
    • GetIdentifier
  • IEllipticCurveService
    • GetOperatingSystemDefaultEllipticCurveList
    • GetOperatingSystemAvailableEllipticCurveList
    • GetOperatingSystemActiveEllipticCurveList
    • GetOperatingSystemConfiguredEllipticCurveList
    • ResetEllipticCurveListToOperatingSystemDefault
    • UpdateEllipticCurveOrder
  • IGroupPolicyService
    • GetSslCipherSuiteOrderPolicyWindowsDefaultsAsync
    • GetSslCurveOrderPolicyWindowsDefaultsAsync
    • UpdateSslCipherSuiteOrderPolicy
    • UpdateEccCurveOrderPolicy
    • GetSslCipherSuiteOrderPolicy
    • GetEccCurveOrderPolicy
  • ISchannelLogService
    • GetSchannelLogs
  • ISchannelService
    • GetProtocolSettings
    • UpdateProtocolSettings
    • ResetProtocolSettings
    • GetKeyExchangeAlgorithmSettings
    • UpdateKeyExchangeAlgorithmSettings
    • ResetKeyExchangeAlgorithmSettings
    • GetSchannelHashSettings
    • UpdateSchannelHashSettings
    • ResetSchannelHashSettings
    • GetSchannelCipherSettings
    • UpdateSchannelCipherSettings
    • ResetSchannelCipherSettings
    • GetSchannelSettings
    • UpdateSchannelSettings
    • ResetSchannelSettings
  • ITlsService
    • GetRemoteServerCipherSuitesAsync
  • IWindowsDocumentationService
    • GetProtocolConfigurations
    • GetCipherSuiteConfigurations
    • GetEllipticCurveConfigurations
  • IWindowsVersionService
    • WindowsVersion

Usage Examples

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using CipherPunk;

// Register the CipherPunk services in the dependency container using AddCipherPunk()
using IHost host = Host.CreateDefaultBuilder(args)
    .ConfigureServices((_, services) => services.AddCipherPunk())
    .Build();

using IServiceScope serviceScope = host.Services.CreateScope();
ICipherSuiteService cipherSuiteService = serviceScope.ServiceProvider.GetRequiredService<ICipherSuiteService>();
IEllipticCurveService ellipticCurveService = serviceScope.ServiceProvider.GetRequiredService<IEllipticCurveService>();

// Retrieve the currently active cipher suites ordered by priority
var cipherSuites = cipherSuiteService.GetOperatingSystemActiveCipherSuiteList();
cipherSuites.ToList().ForEach(q => Console.WriteLine(q.CipherSuiteName));

// Retrieve the currently active elliptic curves ordered by priority
var ellipticCurves = ellipticCurveService.GetOperatingSystemActiveEllipticCurveList();
ellipticCurves.ToList().ForEach(q => Console.WriteLine(q.pwszName));

// Retrieve the default cipher suites ordered by priority for the current OS
var defaultCipherSuites = cipherSuiteService.GetOperatingSystemDocumentationDefaultCipherSuiteList();
defaultCipherSuites.ToList().ForEach(q => Console.WriteLine(q.CipherSuite));

// Retrieve the default elliptic curves ordered by priority for the current OS
var defaultEllipticCurves = ellipticCurveService.GetOperatingSystemDefaultEllipticCurveList();
defaultEllipticCurves.ToList().ForEach(q => Console.WriteLine(q.Name));

// Add a cipher suite
cipherSuiteService.AddCipherSuite("TLS_AES_256_GCM_SHA384");

await host.RunAsync();
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 454 12/9/2025
1.2.0 182 1/8/2025
1.1.3 217 1/1/2025
1.1.0 214 11/13/2024
1.1.0-alpha0055 178 11/13/2024
1.1.0-alpha0028 203 3/22/2024
1.1.0-alpha0021 200 2/25/2024
1.1.0-alpha0015 223 2/8/2024
1.1.0-alpha0010 179 2/3/2024
1.1.0-alpha0006 174 1/27/2024
1.1.0-alpha0003 176 1/21/2024
1.1.0-alpha0001 188 1/21/2024
1.0.0 321 1/5/2024
0.2.0-alpha0810 207 1/3/2024
0.2.0-alpha0760 171 1/1/2024
0.2.0-alpha0711 181 1/1/2024
0.2.0-alpha0663 200 1/1/2024
0.2.0-alpha0616 214 1/1/2024
0.2.0-alpha0570 202 12/31/2023
0.2.0-alpha0525 209 12/30/2023
0.2.0-alpha0481 183 12/29/2023
0.2.0-alpha0438 186 12/26/2023
0.2.0-alpha0396 258 11/5/2023
0.2.0-alpha0355 143 11/3/2023
0.2.0-alpha0315 205 11/3/2023
0.2.0-alpha0276 257 8/14/2023
0.2.0-alpha0238 242 6/23/2023
0.2.0-alpha0201 271 5/29/2023
0.2.0-alpha0165 271 5/25/2023
0.2.0-alpha0130 249 5/1/2023
0.2.0-alpha0096 264 4/22/2023
0.2.0-alpha0063 279 4/15/2023
0.2.0-alpha0031 285 1/24/2023
0.1.0 491 11/18/2022
0.1.0-alpha0235 299 11/18/2022
0.1.0-alpha0176 232 10/29/2022
0.1.0-alpha0148 223 10/29/2022
0.1.0-alpha0121 246 10/29/2022
0.1.0-alpha0095 227 10/28/2022
0.1.0-alpha0070 232 10/28/2022
0.1.0-alpha0046 231 10/28/2022
0.1.0-alpha0030 261 11/18/2022
0.1.0-alpha0023 245 10/28/2022