CipherPunk 0.1.0-alpha0070

This is a prerelease version of CipherPunk.
There is a newer version of this package available.
See the version list below for details.
dotnet add package CipherPunk --version 0.1.0-alpha0070
                    
NuGet\Install-Package CipherPunk -Version 0.1.0-alpha0070
                    
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="0.1.0-alpha0070" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CipherPunk" Version="0.1.0-alpha0070" />
                    
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 0.1.0-alpha0070
                    
#r "nuget: CipherPunk, 0.1.0-alpha0070"
                    
#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.
#addin nuget:?package=CipherPunk&version=0.1.0-alpha0070&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CipherPunk&version=0.1.0-alpha0070&prerelease
                    
Install as a Cake Tool

CipherPunk

Allows Windows Schannel CipherSuite and Elliptic Curve configuration. Inspired by IISCrypto

Features

  • Supports SSL/TLS protocols from SSL2.0 to TLS1.3
  • Remote server probing
  • Cipher Suite configuration
  • Elliptic Curve configuration
  • Windows 7 to 11 & Windows Server 2008 R2 to 2022
  • 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 seperate configuration.

CipherPunk.UI

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

CipherPunk

A NuGet package to manage Windows Schannel.

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
List<WindowsApiCipherSuiteConfiguration> cipherSuites = cipherSuiteService.GetOperatingSystemActiveCipherSuiteList();
cipherSuites.ForEach(q => Console.WriteLine(q.CipherSuiteName));

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

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

// Retrieve the default elliptic curves ordered by priority for the current OS
List<WindowsDocumentationEllipticCurveConfiguration> defaultEllipticCurves = ellipticCurveService.GetOperatingSystemDefaultEllipticCurveList();
defaultEllipticCurves.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 net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.0 83 1/8/2025
1.1.3 126 1/1/2025
1.1.0 119 11/13/2024
1.1.0-alpha0055 98 11/13/2024
1.1.0-alpha0028 136 3/22/2024
1.1.0-alpha0021 122 2/25/2024
1.1.0-alpha0015 138 2/8/2024
1.1.0-alpha0010 112 2/3/2024
1.1.0-alpha0006 116 1/27/2024
1.1.0-alpha0003 113 1/21/2024
1.1.0-alpha0001 111 1/21/2024
1.0.0 243 1/5/2024
0.2.0-alpha0810 132 1/3/2024
0.2.0-alpha0760 115 1/1/2024
0.2.0-alpha0711 109 1/1/2024
0.2.0-alpha0663 139 1/1/2024
0.2.0-alpha0616 131 1/1/2024
0.2.0-alpha0570 146 12/31/2023
0.2.0-alpha0525 155 12/30/2023
0.2.0-alpha0481 133 12/29/2023
0.2.0-alpha0438 130 12/26/2023
0.2.0-alpha0396 187 11/5/2023
0.2.0-alpha0355 103 11/3/2023
0.2.0-alpha0315 126 11/3/2023
0.2.0-alpha0276 157 8/14/2023
0.2.0-alpha0238 161 6/23/2023
0.2.0-alpha0201 159 5/29/2023
0.2.0-alpha0165 153 5/25/2023
0.2.0-alpha0130 153 5/1/2023
0.2.0-alpha0096 178 4/22/2023
0.2.0-alpha0063 163 4/15/2023
0.2.0-alpha0031 185 1/24/2023
0.1.0 378 11/18/2022
0.1.0-alpha0235 180 11/18/2022
0.1.0-alpha0176 150 10/29/2022
0.1.0-alpha0148 136 10/29/2022
0.1.0-alpha0121 141 10/29/2022
0.1.0-alpha0095 144 10/28/2022
0.1.0-alpha0070 139 10/28/2022
0.1.0-alpha0046 123 10/28/2022
0.1.0-alpha0030 167 11/18/2022
0.1.0-alpha0023 136 10/28/2022