{"id":15563880,"url":"https://github.com/decalage2/pyxmldsig","last_synced_at":"2025-03-12T12:17:13.116Z","repository":{"id":66047171,"uuid":"277646431","full_name":"decalage2/pyxmldsig","owner":"decalage2","description":"pyxmldsig is a Python module to create and verify XML Digital Signatures (XML-DSig). This is a simple interface to the PyXMLSec library, aiming to provide a more pythonic API suitable for Python applications. See http://www.decalage.info/python/pyxmldsig","archived":false,"fork":false,"pushed_at":"2020-07-06T21:01:11.000Z","size":82,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T05:49:31.442Z","etag":null,"topics":["dsig","python","xml","xml-signature"],"latest_commit_sha":null,"homepage":"http://www.decalage.info/python/pyxmldsig","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decalage2.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-06T20:52:17.000Z","updated_at":"2024-06-05T08:05:24.000Z","dependencies_parsed_at":"2023-03-13T20:31:07.831Z","dependency_job_id":null,"html_url":"https://github.com/decalage2/pyxmldsig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Fpyxmldsig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Fpyxmldsig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Fpyxmldsig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Fpyxmldsig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decalage2","download_url":"https://codeload.github.com/decalage2/pyxmldsig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213984,"owners_count":20254902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dsig","python","xml","xml-signature"],"created_at":"2024-10-02T16:29:06.839Z","updated_at":"2025-03-12T12:17:13.081Z","avatar_url":"https://github.com/decalage2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pyxmldsig is a Python module to create and verify XML Digital Signatures (XML-DSig).\n\nThis is a simple interface to the PyXMLSec library, aiming to provide a more\npythonic API suitable for Python applications.\nSee http://www.decalage.info/python/pyxmldsig to download the latest version.\n\nMay be used as a command-line tool or as a Python module.\nThis code is inspired from PyXMLSec samples, with a more pythonic interface:\nhttp://pyxmlsec.labs.libre-entreprise.org/index.php?section=examples\n\nAUTHOR: Philippe Lagadec (decalage at laposte dot net)\n\nPROJECT WEBSITE: http://www.decalage.info/python/pyxmldsig\n\nLICENSE:\n\nCopyright (c) 2009-2010, Philippe Lagadec (decalage at laposte dot net)\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above copyright\nnotice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n\nUSAGE AS A TOOL:\npyxmldsig.py \u003cdata.xml\u003e -k \u003ckey-file.pem\u003e [-c cert-file.pem] [-p password]\n\nUSAGE IN A PYTHON APPLICATION:\n\nimport pyxmldsig\n\n# simple function interface:\nsigned_xml = pyxmldsig.sign_file(template_file='myfile.xml',\n    key_file='mykey.pem', cert_file='myx509cert.pem', password='mypassword')\nprint signed_xml\n\n# sign with class interface:\nxdsig = pyxmldsig.Xmldsig(key_file='mykey.pem', cert_file='myx509cert.pem',\n    password='mypassword')\nsigned_xml1 = xdsig.sign_file('myfile.xml')\nsigned_xml2 = xdsig.sign_file(pyxmldsig.TEMPLATE_WITH_CERT)\n\n# verify with class interface:\nxdsig2 = pyxmldsig.Xmldsig()\nxdsig2.load_certs(['cacert.pem', 'myx509cert.pem'])\nassert xdsig2.verify_xmlstring(signed_xml1) == True\nassert xdsig2.verify_xmlstring(signed_xml2) == True\n\n\nREQUIREMENTS:\n- pyxmlsec: http://pyxmlsec.labs.libre-entreprise.org/\n- xmlsec: http://www.aleksey.com/xmlsec/\n- libxml2: http://xmlsoft.org\n- On Windows see also this site for convenient compiled binaries:\n  http://returnbooleantrue.blogspot.com/2009/04/pyxmlsec-windows-binary.html\n\nREFERENCES:\n- http://www.w3.org/TR/xmldsig-core/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecalage2%2Fpyxmldsig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecalage2%2Fpyxmldsig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecalage2%2Fpyxmldsig/lists"}