Click here to Skip to main content
12,897,830 members (77,702 online)
Click here to Skip to main content
Add your own
alternative version


96 bookmarked
Posted 2 Sep 2003

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


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, Signet pilot, Signet intraNet, Signet personal, 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


  • 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.


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


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.

You may also be interested in...

Comments and Discussions

General.ber and . der Pin
BigAzam23-Feb-05 15:02
memberBigAzam23-Feb-05 15:02 
GeneralRe: .ber and . der Pin
Anonymous23-Feb-05 19:15
sussAnonymous23-Feb-05 19:15 
GeneralRe: .ber and . der Pin
BigAzam7-Apr-05 6:20
memberBigAzam7-Apr-05 6:20 
QuestionHow to detect if the node has one or multiple tags? Pin
greatx16-Feb-05 16:17
sussgreatx16-Feb-05 16:17 
AnswerRe: How to detect if the node has one or multiple tags? Pin
Liping Dai16-Feb-05 19:28
memberLiping Dai16-Feb-05 19:28 
GeneralOpening X509 signed files. Pin
sillypuppy23-Jan-05 22:41
membersillypuppy23-Jan-05 22:41 
GeneralRe: Opening X509 signed files. Pin
Liping Dai24-Jan-05 19:10
memberLiping Dai24-Jan-05 19:10 
GeneralRe: Opening X509 signed files. Pin
sillypuppy24-Jan-05 23:48
membersillypuppy24-Jan-05 23:48 
Funny that i could open a file with certificate only (PKCS#7) however i when I open the executable signed with this certificate then I only see unknown node.

Does that mean that ASN.1 Editor can only open cerificate files.

GeneralFantastic tool. Pin
sillypuppy22-Jan-05 5:48
membersillypuppy22-Jan-05 5:48 
GeneralRe: Fantastic tool. Pin
Liping Dai22-Jan-05 7:15
memberLiping Dai22-Jan-05 7:15 
GeneralRe: Fantastic tool. Pin
sillypuppy23-Jan-05 1:33
membersillypuppy23-Jan-05 1:33 
GeneralRe: Fantastic tool. Pin
Liping Dai23-Jan-05 8:15
memberLiping Dai23-Jan-05 8:15 
GeneralRe: Fantastic tool. Pin
sillypuppy23-Jan-05 22:16
membersillypuppy23-Jan-05 22:16 
GeneralGreat Stuff and Thanks for your generousness Pin
yianfang24-May-04 8:55
memberyianfang24-May-04 8:55 
GeneralRe: Great Stuff and Thanks for your generousness Pin
Liping Dai27-May-04 22:16
memberLiping Dai27-May-04 22:16 
GeneralI got it Pin
CS_Sniper28-Dec-03 18:48
memberCS_Sniper28-Dec-03 18:48 
GeneralThanks Pin
Liping Dai4-Sep-03 1:44
memberLiping Dai4-Sep-03 1:44 
GeneralWhy such a low rating Pin
Normski3-Sep-03 21:01
memberNormski3-Sep-03 21:01 
GeneralRe: Why such a low rating Pin
sfeldi4-Sep-03 4:13
membersfeldi4-Sep-03 4:13 
GeneralRe: Why such a low rating Pin
Normski5-Sep-03 23:08
memberNormski5-Sep-03 23:08 
GeneralRe: Why such a low rating Pin
Liping Dai6-Sep-03 8:32
memberLiping Dai6-Sep-03 8:32 
Generalimages Pin
Roger J3-Sep-03 2:46
memberRoger J3-Sep-03 2:46 
GeneralRe: images Pin
sfeldi3-Sep-03 4:40
membersfeldi3-Sep-03 4:40 
GeneralRe: images Pin
Liping Dai3-Sep-03 4:49
memberLiping Dai3-Sep-03 4:49 

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

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

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