A pure Python ASN.1 library. Supports dict and sets.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819202122232425
  1. PASN1
  2. =====
  3. This is a simple library for doing marshalling of python objects that
  4. uses a profile/subset of ASN.1. This library is not designed to be a
  5. general ASN.1 parser, but designed to be super simple to use, and
  6. secure.
  7. This library support Python 3. The git repo has a branch, python2
  8. that maintains the latest support for Python 2.
  9. The following python types are supported: bool, int (and long), bytes,
  10. null (as None), float, unicode (aka str), datetime, list, set and dict.
  11. If you need to serialize other types/instances, a coerce function maybe
  12. provided which is required to return the above string and an object
  13. implementing the correct methods. See the ASN1Coder's __init__
  14. method's doc string for more information.
  15. ASN.1 has a number of different types of strings, but only UTF8String
  16. is used by this library. In order to support dict types, it uses the
  17. Private Constructed type 0. The contents are pairs of key value objects.
  18. bytes is mapped to the octet string type. The minimal encoding is used
  19. so that the same data will be encoded as the same string, similar to the
  20. ASN.1 DER encoding. The class ASN1Coder is available if the dict support
  21. is required to not be present.