Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.7 and 3.5+.
Python-ASN1 relies on Python-Future <https://python-future.org>
_ for Python 2 and 3 compatibility. To install Python-Future:
.. code-block:: sh
pip install future
Install from PyPi with the following:
.. code-block:: sh
pip install asn1
or download the repository from GitHub <https://github.com/andrivet/python-asn1>
_ and install with the following:
.. code-block:: sh
python setup.py install
You can also simply include asn1.py
into your project.
.. note:: You can find more detailed documentation on the Usage
_ page.
.. _Usage: usage.rst
If you want to encode data and retrieve its DER-encoded representation, use code such as:
.. code-block:: python
import asn1
encoder = asn1.Encoder() encoder.start() encoder.write('1.2.3', asn1.Numbers.ObjectIdentifier) encoded_bytes = encoder.output()
If you want to decode ASN.1 from DER or BER encoded bytes, use code such as:
.. code-block:: python
import asn1
decoder = asn1.Decoder() decoder.start(encoded_bytes) tag, value = decoder.read()
The complete documentation is available on Read The Docs:
python-asn1.readthedocs.io <https://python-asn1.readthedocs.io/en/latest/>
_
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.
The following people have contributed to Python-ASN1. Collectively they own the copyright of this software.
original implementation <https://github.com/geertj/python-asn1>
_.FAQs
Python-ASN1 is a simple ASN.1 encoder and decoder for Python 2.7+ and 3.5+.
We found that asn1 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.