Sponsored Content
Top Forums UNIX for Advanced & Expert Users Python Programming for ASN.1 file Post 302963821 by fpmurphy on Wednesday 6th of January 2016 10:21:09 PM
Old 01-06-2016
There are quite a few Python ASN.1 parsers and decoders available. Do an Internet search for "ASN.1 Python parser" or "ASN.1 Python decoder."
 

9 More Discussions You Might Find Interesting

1. High Performance Computing

Programming parallel for C++ and Python application

I am looking to have a C++ and Python application developed using the processing power of at least one GPU. We are already using Boost, so Boost.MPI comes to mind. We already have some experience in developing C++ applications for multi-core CPUs by using threading. However, since we have not... (3 Replies)
Discussion started by: figaro
3 Replies

2. Programming

ASN.1 Decoder UNIX Code

Kindly help i need to write a code for Decode/Compile the ASN.1 which is found in javascript or C language if any got a final working Code:D (16 Replies)
Discussion started by: teefa
16 Replies

3. Debian

Programming, Python.

I do some Python programming in windows, understand how to use python in windows... However I do not know how to use python in Linux. I do know the commands n such are the same but there isn't any IDLE or anything its ran straight from the terminal by typing python but I have never used python that... (2 Replies)
Discussion started by: Cryptek
2 Replies

4. Shell Programming and Scripting

**python** unable to read the background color in python

I am working on requirement on spreadsheet in python scripting. I have a spreadsheet containing cell values and with background color. I am able to read the value value but unable to get the background color of that particular cell. Actually my requirement is to read the cell value along... (1 Reply)
Discussion started by: giridhar276
1 Replies

5. Programming

ASN.1 decoder

Hi All, I am fairly new to this so please forgive me, Currently I have an ASN.1 which I would like the ability to load this to my work server in order to enter a string of output decode and display the output. There are methods online as shown on ASN.1 JavaScript decoder however I have... (3 Replies)
Discussion started by: mutley2202
3 Replies

6. Solaris

ASN Binary to ASCII

Dears, I need help to convert the binary file into ASCII format. Actually we have CDRs which is generated by telecom switch at this is in ASN1 format or binary format, I need to convert those binary formatted file into ASCII format using Perl, or shell scripting. Is there any way to solve... (3 Replies)
Discussion started by: PRINCESS_RORO
3 Replies

7. Shell Programming and Scripting

Python Programming for asn1 file

Hi. Has anyone here got an experience doing conversion from asn1 format to a readable format so that it can be processed by Oracle? I want to load the data into a table. This is a CDR file. Attached is the pairing file. Please remove the .txt at the end.... (1 Reply)
Discussion started by: aimy
1 Replies

8. Post Here to Contact Site Administrators and Moderators

Is it possible to add Python in the description of Shell Programming and Scripting of this forum?

https://www.unix.com/shell-programming-and-scripting/ The current description of Shell Programming and Scripting has: Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here. Perl, php are there. Is it possible to add PYTHON there too? (3 Replies)
Discussion started by: cola
3 Replies

9. Programming

Create a C source and compile inside Python 1.4.0 to 3.7.0 in Python for ALL? platforms...

Hi all... As you know I like making code backwards compatible for as many platforms as possible. This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
asn1rt(3erl)						     Erlang Module Definition						      asn1rt(3erl)

NAME
asn1rt - ASN.1 runtime support functions DESCRIPTION
This module is the interface module for the ASN.1 runtime support functions. To encode and decode ASN.1 types in runtime the functions in this module should be used. EXPORTS
start() -> ok |{error,Reason} Types Reason = term() Starts the asn1 server that loads the drivers. The server schedules a driver that is not blocked by another caller. The driver is used by the asn1 application if specs are com- piled with options [per_bin, optimize] or [ber_bin, optimize, driver] . The server will be started automatically at encode/decode if it isn't done explicitly. If encode/decode with driver is used in test or industrial code it is a performance gain to start it explicitly to avoid the one time load in run-time. stop() -> ok |{error,Reason} Types Reason = term() Stops the asn1 server and unloads the drivers. decode(Module,Type,Bytes) -> {ok,Value}|{error,Reason} Types Module = Type = atom() Value = Reason = term() Bytes = binary | [Int] when integer(Int), Int >= 0, Int =< 255 | binary Decodes Type from Module from the list of bytes or binary Bytes . If the module is compiled with ber_bin or per_bin option Bytes must be a binary. Returns {ok,Value} if successful. encode(Module,Type,Value)-> {ok,BinOrList} | {error,Reason} Types Module = Type = atom() Value = term() BinOrList = Bytes | binary() Bytes = [Int|binary|Bytes] when integer(Int), Int >= 0, Int =< 255 Reason = term() Encodes Value of Type defined in the ASN.1 module Module . Returns a possibly nested list of bytes and or binaries if successful. If Module was compiled with the options per_bin and optimize the result is a binary. To get as fast execution as possible the encode function only performs rudimentary tests that the input Value is a correct instance of Type . The length of strings is for example not always checked. info(Module) -> {ok,Info} | {error,Reason} Types Module = atom() Info = list() Reason = term() info/1 returns the version of the asn1 compiler that was used to compile the module. It also returns the compiler options that was used. load_driver() -> ok | {error,Reason} Types Reason = term() This function loads the linked-in driver before the first call to encode. If this function is not called the driver will be loaded automatically at the first call to encode. If one doesn't want the performance cost of a driver load when the application is run- ning, this function makes it possible to load the driver in an initialization. The driver is only used when encoding/decoding ASN.1 files that were compiled with the options per_bin and optimize . unload_driver() -> ok | {error,Reason} Types Reason = term() This function unloads the linked-in driver. When the driver has been loaded it remains in the environment until it is unloaded. Nor- mally the driver should remain loaded, it is crucial for the performance of ASN.1 encoding. The driver is only used when ASN.1 modules have been compiled with the flags per_bin and optimize . utf8_binary_to_list(UTF8Binary) -> {ok,UnicodeList} | {error,Reason} Types UTF8Binary = binary() UnicodeList = [integer()] Reason = term() utf8_binary_to_list/1 Transforms a UTF8 encoded binary to a list of integers, where each integer represents one character as its unicode value. The function fails if the binary is not a properly encoded UTF8 string. utf8_list_to_binary(UnicodeList) -> {ok,UTF8Binary} | {error,Reason} Types UnicodeList = [integer()] UTF8Binary = binary() Reason = term() utf8_list_to_binary/1 Transforms a list of integers, where each integer represents one character as its unicode value, to a UTF8 encoded binary. validate(Module,Type,Value) -> ok | {error,Reason} Types Module = Type = atom() Value = term() Validates that Value conforms to Type from Module . Not implemented in this version of the ASN.1 application. Ericsson AB asn1 1.6.16 asn1rt(3erl)
All times are GMT -4. The time now is 10:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy