Etresoft Decoder is a drag and drop program that will decode yEnc, MIME (Base64), UUencoded, AppleSingle, MacBinary (I, II, and III), and BinHex files. Import asn1 decoder = asn1. Decoder decoder. Start (encodedbytes) tag, value = decoder. License¶ Python-ASN1 is free software that is made available under the MIT license. Consult the file LICENSE that is distributed together with this library for the exact licensing terms.
Latest version Last released:
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.6+ and 3.3+.
Project description
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.6+ and 3.3+.
Features
- Support BER (parser) and DER (parser and generator) encoding
- 100% python, compatible with version 2.6, 2.7, 3.3 and higher
- Can be integrated by just including a file into your project
Dependencies
Python-ASN1 relies on Python-Future for Python 2 and 3 compatibility. To install Python-Future:
How to install Python-asn1
Install from PyPi with the following:
or download the repository from GitHub and install with the following:
You can also simply include asn1.py into your project.
How to use Python-asn1
Note
You can find more detailed documentation on the Usage page.
Encoding
If you want to encode data and retrieve its DER-encoded representation, use code such as:
Decoding
If you want to decode ASN.1 from DER or BER encoded bytes, use code such as:
Documentation
The complete documentation is available on Read The Docs:
License
Python-ASN1 is free software that is made available under the MIT license.Consult the file LICENSE that is distributed together with this library forthe exact licensing terms.
Copyright
The following people have contributed to Python-ASN1. Collectively they own the copyright of this software.
- Geert Jansen (geert@boskant.nl): original implementation.
- Sebastien Andrivet (sebastien@andrivet.com)
Changelog
2.1.1 (2017-10-30)
- Fix a bug (#9): two’s complement corner case with values such as -32769. Add new test cases to test them.
2.1.0 (2016-12-18)
- Add more documentation
- Use (simulated) enumerations
- Add Python 2.6 in automated checks and tests
- Add type hints (for static checking) and fix some code
2.0.0 (2016-12-16)
- First public release by Sebastien Andrivet
- Support both python 2 and 3 (with Python-Future)
- All strings are now in unicode
- Add more ASN.1 tags (like PrintableString)
- Fix errors in the example (dump.py)
- Code reorganization
0.9 (2011-05-18)
- Initial public release by Geert Jansen
Release historyRelease notifications
2.2.0
2.1.1
2.1.0
2.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size asn1-2.2.0-py2.py3-none-any.whl (9.8 kB) | File type Wheel | Python version 3.6 | Upload date | Hashes |
Filename, size asn1-2.2.0.tar.gz (31.7 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for asn1-2.2.0-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | f856c475719b93a240b89f457c4da8a7f2b6f1cca82acd0fabe6b7e2adfcb3cb |
MD5 | 8af395da320bc19d870cf07cc894c760 |
BLAKE2-256 | 98901fef44666b33b3127cc25d32a8b0ded19676c70a6980b5be9cea27470a26 |
Hashes for asn1-2.2.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 5a0cc798ae21313260a53fda7d76b45a86d72a93c58eb218b2713765ce8bf3c7 |
MD5 | 6281edeea05d719de37a85f39df43042 |
BLAKE2-256 | b2a11b08bf1004fe00c1a8b9704aa4cabc40d96d09909c6f12d1ac6468d6d3a3 |
Last released:
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.6+ and 3.3+.
Project description
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.6+ and 3.3+.
Features
- Support BER (parser) and DER (parser and generator) encoding
- 100% python, compatible with version 2.6, 2.7, 3.3 and higher
- Can be integrated by just including a file into your project
Dependencies
Python-ASN1 relies on Python-Future for Python 2 and 3 compatibility. To install Python-Future:
How to install Python-asn1
Install from PyPi with the following:
or download the repository from GitHub and install with the following:
You can also simply include asn1.py into your project.
How to use Python-asn1
Note
You can find more detailed documentation on the Usage page.
Encoding
If you want to encode data and retrieve its DER-encoded representation, use code such as:
Decoding
If you want to decode ASN.1 from DER or BER encoded bytes, use code such as:
Documentation
The complete documentation is available on Read The Docs:
License
Python-ASN1 is free software that is made available under the MIT license.Consult the file LICENSE that is distributed together with this library forthe exact licensing terms.
Copyright
The following people have contributed to Python-ASN1. Collectively they own the copyright of this software.
- Geert Jansen (geert@boskant.nl): original implementation.
- Sebastien Andrivet (sebastien@andrivet.com)
Changelog
2.1.1 (2017-10-30)
- Fix a bug (#9): two’s complement corner case with values such as -32769. Add new test cases to test them.
2.1.0 (2016-12-18)
- Add more documentation
- Use (simulated) enumerations
- Add Python 2.6 in automated checks and tests
- Add type hints (for static checking) and fix some code
2.0.0 (2016-12-16)
- First public release by Sebastien Andrivet
- Support both python 2 and 3 (with Python-Future)
- All strings are now in unicode
- Add more ASN.1 tags (like PrintableString)
- Fix errors in the example (dump.py)
- Code reorganization
0.9 (2011-05-18)
- Initial public release by Geert Jansen
Release historyRelease notifications
2.2.0
2.1.1
2.1.0
2.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size asn1-2.2.0-py2.py3-none-any.whl (9.8 kB) | File type Wheel | Python version 3.6 | Upload date | Hashes |
Filename, size asn1-2.2.0.tar.gz (31.7 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for asn1-2.2.0-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | f856c475719b93a240b89f457c4da8a7f2b6f1cca82acd0fabe6b7e2adfcb3cb |
MD5 | 8af395da320bc19d870cf07cc894c760 |
BLAKE2-256 | 98901fef44666b33b3127cc25d32a8b0ded19676c70a6980b5be9cea27470a26 |
Hashes for asn1-2.2.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 5a0cc798ae21313260a53fda7d76b45a86d72a93c58eb218b2713765ce8bf3c7 |
MD5 | 6281edeea05d719de37a85f39df43042 |
BLAKE2-256 | b2a11b08bf1004fe00c1a8b9704aa4cabc40d96d09909c6f12d1ac6468d6d3a3 |