Metadata-Version: 2.4
Name: xmlhashtree
Version: 1.0.0
Summary: Python library for calculating hash trees (Merkle trees) over XML documents
Author-email: Matthias Lohr <mail@mlohr.com>
License-Expression: MIT
Project-URL: Homepage, https://gitlab.com/MatthiasLohr/xmlhashtree
Project-URL: Repository, https://gitlab.com/MatthiasLohr/xmlhashtree
Project-URL: Issues, https://gitlab.com/MatthiasLohr/xmlhashtree/-/issues
Keywords: xml,hash,hash tree,merkle tree
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Text Processing :: Markup :: XML
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.md
Dynamic: license-file

# XMLHashTree

Python library for calculating hash trees (also known as Merkle Tree).

This package contains essentially to important classes:
  * `XMLHashTree`
  * `SaltedXMLHashTree`


## Setup

Install the latest release from PyPI:
```bash
pip install xmlhashtree
```

Alternatively, install directly from the git repository:

```bash
pip install git+https://gitlab.com/MatthiasLohr/xmlhashtree.git
```


## Example Usage

```python
import xmlhashtree
import xml.etree.ElementTree

tree = xml.etree.ElementTree.parse('input.xml').getroot()
hash_tree = xmlhashtree.XMLHashTree(tree)  # You can also use SaltedXMLHashTree here
```

Copyright (c) by [Matthias Lohr](https://mlohr.com/) &lt;[mail@mlohr.com](mailto:mail@mlohr.com)&gt;


## License

This project is licensed under the MIT License, see [LICENSE.md](LICENSE.md) for details.
