Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.