All Projects → huysentruitw → pem-utils

huysentruitw / pem-utils

Licence: Apache-2.0 License
Managed .NET (C#) utility library for working with PEM files with DER/ASN.1 encoding

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to pem-utils

asn1scc.IDE
Qt Creator plugin for asn1scc - ASN.1/ACN compiler for embedded systems
Stars: ✭ 15 (-75.81%)
Mutual labels:  asn1, asn, asn-1
rasn
A Safe #[no_std] ASN.1 Codec Framework
Stars: ✭ 131 (+111.29%)
Mutual labels:  asn1, asn, der
Asn1DerParser.NET
Abstract Syntax Notation One (ASN.1) binary parser to support Distinguished Encoding Rules (DER) in .NET
Stars: ✭ 31 (-50%)
Mutual labels:  asn1, asn, der
der-parser
BER/DER parser written in pure Rust. Fast, zero-copy, safe.
Stars: ✭ 73 (+17.74%)
Mutual labels:  asn1, der
asn1-ts
ASN.1 TypeScript library, including codecs for Basic Encoding Rules (BER) and Distinguished Encoding Rules (DER).
Stars: ✭ 26 (-58.06%)
Mutual labels:  asn1, der
asinine
Embeddable ASN.1 (DER) and X.509v3 decoder
Stars: ✭ 34 (-45.16%)
Mutual labels:  asn1, der
rasn1
Ruby ASN.1 library
Stars: ✭ 14 (-77.42%)
Mutual labels:  asn1, der
Waveshare.EPaperDisplay
.Net Core Library to show images on Waveshare E-Paper Displays
Stars: ✭ 17 (-72.58%)
Mutual labels:  dotnet-standard
dapr-sidekick-dotnet
Dapr Sidekick for .NET - a lightweight lifetime management component for Dapr
Stars: ✭ 113 (+82.26%)
Mutual labels:  dotnet-standard
pnpcore
The PnP Core SDK is a modern .NET SDK designed to work for Microsoft 365. It provides a unified object model for working with SharePoint Online and Teams which is agnostic to the underlying API's being called
Stars: ✭ 169 (+172.58%)
Mutual labels:  dotnet-standard
MayMeow.Cryptography
🔐 Cryptography library for .NET
Stars: ✭ 12 (-80.65%)
Mutual labels:  dotnet-standard
TypeKitchen
TypeKitchen is a set of small libraries for fast metaprogramming in .NET Standard.
Stars: ✭ 14 (-77.42%)
Mutual labels:  dotnet-standard
chess
Chess (game)(♟) built in C# and ASCII art.
Stars: ✭ 20 (-67.74%)
Mutual labels:  dotnet-standard
Warframe.NET
Under rewrite: Collection of Warframe libraries for C# developers.
Stars: ✭ 18 (-70.97%)
Mutual labels:  dotnet-standard
HardwareInformation
.NET Standard Cross-Platform Hardware Information Gatherer
Stars: ✭ 37 (-40.32%)
Mutual labels:  dotnet-standard
barcoder
Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.
Stars: ✭ 76 (+22.58%)
Mutual labels:  dotnet-standard
Workday.WebServices
Workday API clients
Stars: ✭ 18 (-70.97%)
Mutual labels:  dotnet-standard
King.Service
Task scheduling for .NET
Stars: ✭ 34 (-45.16%)
Mutual labels:  dotnet-standard
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (-46.77%)
Mutual labels:  dotnet-standard
chatbase-dotnet
Integrate your DotNet application with Chatbase!
Stars: ✭ 16 (-74.19%)
Mutual labels:  dotnet-standard

PEM-utils

Build status

Managed .NET (C#) utility library for working with PEM files with DER/ASN.1 encoding.

This project has 2 separate libraries:

  • DerConverter - for converting ASN.1 syntax from/to binary data
  • PemUtils - builds on top of DerConverter for reading/writing RSAParameters from/to a PEM formatted file

PEM files are commonly used to exchange public or private key data.

Currently files with these headers are supported:

  • ----- BEGIN PUBLIC KEY ----- / ----- END PUBLIC KEY -----
  • ----- BEGIN RSA PRIVATE KEY ----- / ----- END RSA PRIVATE KEY -----

Get it on NuGet

PM> Install-Package PemUtils

or if you only want a DER converter:

PM> Install-Package DerConverter

Usage

Reading

using (var stream = File.OpenRead(path))
using (var reader = new PemReader(stream))
{
    var rsaParameters = reader.ReadRsaKey();
    // ...
}

Writing

using (var stream = File.Create(path))
using (var writer = new PemWriter(stream))
{
    // ...
    writer.WritePublicKey(rsaParameters);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].