Click here to Skip to main content
11,412,833 members (77,931 online)
Click here to Skip to main content

ASN.1 Editor

, 30 Jun 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
An editor to view, analyse and modify ASN.1 DER encoded data
ASN.1 Editor Main Screen

Introduction

Abstract Syntax Notation One (ASN.1) Distinguished Encoding Rule (DER) encoded data is widely used in digital security protocols (i.e. X509 digital certificate). The encoded data is not readable by regular text editors. The Asn1Processor Library is designed to parse and modify ASN.1 DER encoded data. The ASN.1 Editor is a sample project that uses the Asn1Processor library to view and to edit DER encoded data. The Asn1Processor Library source code and reference documentation (Asn1EditorLib.chm) are also included in the downloadable source code zip file.

The ASN.1 Editor doesn't do any schema checking. The user needs to make sure the edited data conforms to certain constrains (i.e. OCSP request or Key Info structure).

Main Features

1. Dump Text Format Data

You can view the selected node branch text dump by right-clicking the designated node and selecting "View Node Text". View Node Text

2. Atomically Parse “Encapsulates” Data

OCTET and BITSTRING may encapsulate ASN.1 DER encoded data, for example:

Encapsulate Parse Sample

The ASN.1 Editor can automatically parse the data structure.

3. Hex Data Viewer

Click "View->Hex Viewer" and you can view the binary data structure.

Hex Viewer

4. Extensible OID Table

OID.txt file is installed in the same directory as Asn1Editor.EXE.

Here are the sample records:

0.9.2342.19200300.100.1.25, domainComponent
1.2.36.68980861.1.1.10, Signet pilot
1.2.36.68980861.1.1.11, Signet intraNet
1.2.36.68980861.1.1.2, Signet personal
1.2.36.68980861.1.1.20, Signet securityPolicy

The OID and the description are comma separated. It can be extended in order to add in additional OIDs.

5. Change Node Content

Double click the selected node and you can see the "Node Content Editor".

Node Content Editor

6. Save Selected Node Data into Another File

You can save the designated node data into a file by right-clicking the node and selecting "Save selected node as...".

7. Copy Selected Node Data into Clipboard

Right-click the node and select "Copy".

8. Paste Node Data from Clipboard

Right-click the insertion point node and select "Paste as last child node", "Paste before current node", or "Paste after current node" to perform the insert operation.

9. Binary/Hex/Base64 Data Converter

Convert the data format between Hex, Base64, and PEM using the "Data Converter".

Data Converter

History

  • 3rd September, 2003: Initial post
  • 29th June, 2008: Updated source code and installer
    The changes are mainly for bug fixing, Visual Studio 2005, and Vista support.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Liping Dai
Software Developer (Senior)
United States United States
Liping Dai has worked in IT industry more than 17 years. He moved to Canada in 1996. After worked in Toronto for 4 years, he relocated to Silicon Valley. He has strong passion in the area of Multi-core/Multi thread programming, Parallel Computing, Image Reorganization, Secure Communication, and Mobile Device development.

Comments and Discussions

 
QuestionIn message file p7m. asn1 Editor bad for each file Pin
Member 3611246 at 31-Mar-15 3:16
memberMember 361124631-Mar-15 3:16 
GeneralMy vote of 5 Pin
Member 11191215 at 29-Oct-14 16:12
memberMember 1119121529-Oct-14 16:12 
QuestionMy vote is 5 Pin
Safak Tarazan at 25-Oct-14 9:57
memberSafak Tarazan25-Oct-14 9:57 
GeneralMy vote of 1 [modified] Pin
MYS77 at 17-Sep-14 7:11
memberMYS7717-Sep-14 7:11 
GeneralMy vote of 5 Pin
Member 10896130 at 19-Jun-14 22:40
memberMember 1089613019-Jun-14 22:40 
Questioncan you decouple the asn1 node class from System.Windows.Forms.TreeNode class? Pin
foundationsoft at 3-Oct-13 17:18
memberfoundationsoft3-Oct-13 17:18 
AnswerRe: can you decouple the asn1 node class from System.Windows.Forms.TreeNode class? Pin
Liping Dai at 3-Oct-13 18:11
memberLiping Dai3-Oct-13 18:11 
GeneralNice tool, but can't handle 'indefinite' length Pin
Qistoph at 17-Mar-11 12:39
memberQistoph17-Mar-11 12:39 
GeneralRe: Nice tool, but can't handle 'indefinite' length [modified] Pin
dheijl at 17-Nov-11 4:40
memberdheijl17-Nov-11 4:40 
GeneralRe: Nice tool, but can't handle 'indefinite' length Pin
Qistoph at 17-Nov-11 22:28
memberQistoph17-Nov-11 22:28 
GeneralRe: Nice tool, but can't handle 'indefinite' length Pin
dheijl at 17-Nov-11 22:39
memberdheijl17-Nov-11 22:39 
GeneralRe: Nice tool, but can't handle 'indefinite' length Pin
Qistoph at 17-Nov-11 22:46
memberQistoph17-Nov-11 22:46 
GeneralExcellent tool, + problem Pin
CodyBatt at 14-Dec-10 12:39
memberCodyBatt14-Dec-10 12:39 
GeneralMy vote of 5 Pin
Alastair Taylor at 7-Oct-10 3:50
memberAlastair Taylor7-Oct-10 3:50 
GeneralAssigning ASN.1 BER file for decoding Pin
kkonline555 at 22-Mar-10 6:55
memberkkonline55522-Mar-10 6:55 
GeneralASN1 Visualizer Pin
KinslayerUY at 17-Sep-09 7:01
memberKinslayerUY17-Sep-09 7:01 
General[Message Removed] Pin
Katekortez at 25-Oct-08 10:30
memberKatekortez25-Oct-08 10:30 
GeneralConverting signed data (with PKCS7) to ASN1Node Pin
Asaf Levy at 22-Apr-08 20:12
memberAsaf Levy22-Apr-08 20:12 
GeneralRe: Converting signed data (with PKCS7) to ASN1Node Pin
KinslayerUY at 17-Sep-09 6:53
memberKinslayerUY17-Sep-09 6:53 
QuestionWriting ASN.1 specification for an audio file (.WAV) Pin
ASN1keith at 24-Feb-08 12:45
memberASN1keith24-Feb-08 12:45 
GeneralI want to convert Base 64 certificate to DER format Pin
yetty2000 at 28-Jun-07 22:08
memberyetty200028-Jun-07 22:08 
I need to convert a digitial certiifciate that is in BASE 64 format to DER format. thanks in advance.
yetty
GeneralFile DER Pin
Sara978 at 1-Jun-05 6:44
memberSara9781-Jun-05 6:44 
GeneralRe: File DER Pin
Liping Dai at 1-Jun-05 20:52
memberLiping Dai1-Jun-05 20:52 
GeneralFile in title bar/file name on command line Pin
Tony Morris at 12-May-05 19:20
memberTony Morris12-May-05 19:20 
GeneralRe: File in title bar/file name on command line Pin
Liping Dai at 16-May-05 4:24
memberLiping Dai16-May-05 4:24 
GeneralRe: File in title bar/file name on command line Pin
Tony Morris at 16-May-05 13:26
memberTony Morris16-May-05 13:26 
GeneralINTEGER value 0 encoding error Pin
Joe Hartford at 6-Apr-05 13:27
memberJoe Hartford6-Apr-05 13:27 
GeneralRe: INTEGER value 0 encoding error Pin
Liping Dai at 25-Apr-05 21:44
memberLiping Dai25-Apr-05 21:44 
QuestionIs this project still moving? Pin
Tony Morris at 3-Apr-05 15:10
memberTony Morris3-Apr-05 15:10 
AnswerRe: Is this project still moving? Pin
Liping Dai at 3-Apr-05 17:43
memberLiping Dai3-Apr-05 17:43 
GeneralRe: Is this project still moving? Pin
[Tony Morris] at 3-Apr-05 19:41
suss[Tony Morris]3-Apr-05 19:41 
GeneralRe: Is this project still moving? Pin
Liping Dai at 3-Apr-05 20:21
memberLiping Dai3-Apr-05 20:21 
GeneralRe: Is this project still moving? Pin
Tony Morris at 4-Apr-05 19:09
memberTony Morris4-Apr-05 19:09 
GeneralRe: Is this project still moving? Pin
Liping Dai at 4-Apr-05 21:10
memberLiping Dai4-Apr-05 21:10 
GeneralOID Encoding Error Pin
jfrazier004 at 26-Mar-05 10:08
memberjfrazier00426-Mar-05 10:08 
GeneralRe: OID Encoding Error Pin
Liping Dai at 27-Mar-05 13:46
memberLiping Dai27-Mar-05 13:46 
General.ber and . der Pin
BigAzam at 23-Feb-05 16:02
memberBigAzam23-Feb-05 16:02 
GeneralRe: .ber and . der Pin
Anonymous at 23-Feb-05 20:15
sussAnonymous23-Feb-05 20:15 
GeneralRe: .ber and . der Pin
BigAzam at 7-Apr-05 7:20
memberBigAzam7-Apr-05 7:20 
QuestionHow to detect if the node has one or multiple tags? Pin
greatx at 16-Feb-05 17:17
sussgreatx16-Feb-05 17:17 
AnswerRe: How to detect if the node has one or multiple tags? Pin
Liping Dai at 16-Feb-05 20:28
memberLiping Dai16-Feb-05 20:28 
GeneralOpening X509 signed files. Pin
sillypuppy at 23-Jan-05 23:41
membersillypuppy23-Jan-05 23:41 
GeneralRe: Opening X509 signed files. Pin
Liping Dai at 24-Jan-05 20:10
memberLiping Dai24-Jan-05 20:10 
GeneralRe: Opening X509 signed files. Pin
sillypuppy at 25-Jan-05 0:48
membersillypuppy25-Jan-05 0:48 
GeneralFantastic tool. Pin
sillypuppy at 22-Jan-05 6:48
membersillypuppy22-Jan-05 6:48 
GeneralRe: Fantastic tool. Pin
Liping Dai at 22-Jan-05 8:15
memberLiping Dai22-Jan-05 8:15 
GeneralRe: Fantastic tool. Pin
sillypuppy at 23-Jan-05 2:33
membersillypuppy23-Jan-05 2:33 
GeneralRe: Fantastic tool. Pin
Liping Dai at 23-Jan-05 9:15
memberLiping Dai23-Jan-05 9:15 
GeneralRe: Fantastic tool. Pin
sillypuppy at 23-Jan-05 23:16
membersillypuppy23-Jan-05 23:16 
GeneralGreat Stuff and Thanks for your generousness Pin
yianfang at 24-May-04 9:55
memberyianfang24-May-04 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150427.1 | Last Updated 30 Jun 2008
Article Copyright 2003 by Liping Dai
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid