endesive - 0.3.0
Python library for digital signing and verification of digital signatures in mail, PDF and XML documents. The ASN.1 implementation depends on asn1crypto. Cryptographic routines depend on oscrypto and cryptography libraries, so everything is 'pure python'. For certificate verification OpenSSL is used but I would not trust it, next version should switch to certvalidator or cryptography. This library implements S/MIME handler which can encrypt and decrypt S/MIME messages using a public RSA key, in AES-128/192/256 CBC/OFB modes. It can also sign and verify S/MIME messages. This library implements CAdES-B handler for signing and verifying PDF documents in Adobe.PPKLite/adbe.pkcs7.detached form. It can sign documents during generation using a modified version of pyfpdf which is included in this library. It can also sign documents generated by external programms. This library implements XADES-BES handler for creating signed xml files. This library implements CMS handler for signing and verifying plain text files with detached signature files. This software is licensed under the MIT License. https://github.com/m32/endesive #!/usr/bin/env python3 # *-* coding: utf-8 *-* from oscrypto import asymmetric from endesive import pdf def main(): dct = { b'sigflags': 3, b'contact': b'u...@email.com', b'location': b'Szczecin', b'signingdate': b'20180731082642+02\'00\'', b'reason': b'Dokument podpisany cyfrowo', } p12 = asymmetric.load_pkcs12(open('demo2_user1.p12', 'rb').read(), '1234') datau = open('pdf.pdf', 'rb').read() datas = pdf.cms.sign(datau, dct, p12[0], p12[1], [], 'sha256') with open('pdf-signed-cms.pdf', 'wb') as fp: fp.write(datau) fp.write(datas) main() -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue1772916] xmlrpclib crash when PyXML installed - sgmlop is available
Grzegorz Makarewicz added the comment: Minimalistic test crash (python 2.5 cvs, sgmlop cvs(pyxml)) - compiled with msvc 2005, where after 10 loops ms-debugger is invoked: data='''\ ?xml version=1.0? methodCall methodNamemws.ScannerLogout/methodName params param value i47/i4 /value /param /params /methodCall ''' import xmlrpclib def main(): i = 1 while 1: print i params, method = xmlrpclib.loads(data) i+=1 main() -- components: +Extension Modules -Library (Lib) nosy: +mak -alanmcintyre, effbot, ldeller, loewis title: xmlrpclib crash when PyXML installed - xmlrpclib crash when PyXML installed - sgmlop is available versions: +3rd party -Python 2.5 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1772916 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
sgmlop - xmlrpclib - bang
simple data for simple test - my version fails after 10 loops after removing sgmlop.pyd from DLLs - everything is working as expected mak #python data='''\ ?xml version=1.0? methodCall methodNamemws.ScannerLogout/methodName params param value i47/i4 /value /param /params /methodCall ''' import xmlrpclib def main(): i = 1 while 1: print i params, method = xmlrpclib.loads(data) i+=1 main() -- http://mail.python.org/mailman/listinfo/python-list
Re: 2.5 updates for syntax file
Andrea wrote: Hi everyone. I'm updating my UltraEdit syntax file for Python 2.5 and was wondering if anyone knew of other additions to make besides these. I found all of these in the What's New document, but wasn't sure if there were other important things to add for highlight. Great :) - Two new built-in functions, any() and all() - A new warning, UnicodeWarning Who is using FAR and isn't happy ? Grzegorz Makarewicz -- http://mail.python.org/mailman/listinfo/python-list
Re: Python for Embedded Systems?
Jack wrote: Is there a Python packaging that is specifically for embedded systems? ie, very small and configurable so the user gets to select what modules to install? For Linux-based embedded systems in particular? I'm thinking of running it on the Linksys's Linux-based open source router WRT54G. It has 4MB flash and 16MB RAM. I think another model has 16MB flash. Any possibilities of running Python on these systems? If Python is not the best candidate for embedded systems because of the size, what (scripting) language would you recommend? PHP may fit but I don't quite like the language. Anything else? Loa is small but it does not seem to be powerful enough. python on palmos - latest version was below 1.5.2 - but is quite interesting has small fotoprint, is fast and usefull but isn't maintained by years mak -- http://mail.python.org/mailman/listinfo/python-list