473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASN.1 encoder & decoder

Can anyone provide guidance on building an ASN.1 decoder and encoder
in Python? This does not have to be a general purpose implementation,
drivenf from an ASN.1 template. It can be dedicated hard coded to a
particular template.

Doug Stell, ce*******@mchsi.com
Aug 25 '06 #1
6 7120
Doug Stell <ce*******@mchsi.comwrites:
Can anyone provide guidance on building an ASN.1 decoder and encoder
in Python?
<http://sourceforge.net/projects/pyasn1/>?
Aug 25 '06 #2
I looked at pyasn1. Unfortunately, it is not useful and provides a C
interface. Thanks, anyhow.

I figure that I will have to write my own, but am unsure of the best
approach. Nested lists and distionaries might be useful and I am
looking to the feasibility of those mechanisms.

On Fri, 25 Aug 2006 23:20:41 +0100, Bruce Stephens
<br**********@cenderis.demon.co.ukwrote:
>Doug Stell <ce*******@mchsi.comwrites:
>Can anyone provide guidance on building an ASN.1 decoder and encoder
in Python?

<http://sourceforge.net/projects/pyasn1/>?
Aug 25 '06 #3
Doug Stell <ce*******@mchsi.comwrites:
Can anyone provide guidance on building an ASN.1 decoder and encoder
in Python? This does not have to be a general purpose implementation,
drivenf from an ASN.1 template. It can be dedicated hard coded to a
particular template.
There might be some useful code in www.trevp.com/tlslite .
Aug 25 '06 #4
Doug Stell <ce*******@mchsi.comwrites:
I looked at pyasn1. Unfortunately, it is not useful and provides a C
interface. Thanks, anyhow.
What makes you say that? It appears to me (looking at the code in
CVS) to be written entirely in Python, and the home page,
<http://pyasn1.sourceforge.net/shows examples clearly with a Python
interface.

I've no idea whether or not it's useful in any other sense.

[...]

Aug 26 '06 #5
I looked at pyasn1. Unfortunately, it is not useful and provides a C
interface. Thanks, anyhow.
pyasn1 is a pure-python implementation. C interface is not supported.
I figure that I will have to write my own, but am unsure of the best
approach. Nested lists and distionaries might be useful and I am
looking to the feasibility of those mechanisms.
Try looking at the pyasn1 homepage http://pyasn1.sf.net where some
design ideas were discussed.

-ilya

Aug 27 '06 #6
Thanks Paul. This is exactly the type andlevel of implementation that
I was looking for.

I will look at the other implementation again.

On 25 Aug 2006 16:32:46 -0700, Paul Rubin
<http://ph****@NOSPAM.invalidwrote:
>Doug Stell <ce*******@mchsi.comwrites:
>Can anyone provide guidance on building an ASN.1 decoder and encoder
in Python? This does not have to be a general purpose implementation,
drivenf from an ASN.1 template. It can be dedicated hard coded to a
particular template.

There might be some useful code in www.trevp.com/tlslite .
Aug 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: S Etchelecu | last post by:
I'm having trouble understanding the MIME::Decoder usage. Within the context of a MIME email handling program I have an array, @data, and I want to uuencode it. I thought I could instantiate a...
0
by: rockstar1971 | last post by:
Hello. I’m working with the Windows Media Encoder SDK to create an online jukebox for myself, but I’m having problems getting it to work. Here’s what I want to do: I’ve got a large...
3
by: Matt | last post by:
I'm trying to simply convert a .avi file recorded by our program to a wmv file, of course compressed as possible. I've looked at the examples provided by microsoft @...
2
by: anirudhvr | last post by:
Hi, I needed a basic binary to ascii encoder, so I wrote this piece of code: /* Encoding algo: suppose 11111010 is the byte to be encoded. It is first broken up into two 4-bit parts (1111...
15
by: aarklon | last post by:
Hi all, this is the program which I saw in my colleagues book. the program was run on turbo C++ 3.0 compiler /*beginning of header file huff.h*/ #ifndef _HUFF_H_ #define _HUFF_H_
1
by: metaosp | last post by:
Hi, Could anyone suggest a nice, small url encoder/decoder class (or function) with source code? Thanks, Metaosp
0
by: Crisco www.misericordia.com.br | last post by:
Hi, friends! I am develop a simple encoder app, one form with one button that start the encoder. This is my code: ============================================================= Option...
2
by: ldpfrog | last post by:
Basically my friend's parents used to log his AIM and email so we made a barbaric version of an encoder that we could type in what we wanted and get random letters out. The only problem is that I did...
0
by: jsnidely | last post by:
Hi, Does anyone have a BCH encoder/decoder written in either C or C++ (or C#)? I am looking for the CCSDS version of the algorithum using (63,56). If anyone has one or knows where the code for...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.