Calculation of the Secrecy Capacity
This repository contains Python implementations of two algorithms that allow a (numerical) calculation of the secrecy capacity of wiretap channels.
The two algorithms are taken from the following publications:
Installation
You can install the package via pip
pip install secrecy-capacity
If you want to install the latest version, you can install the package from source
git clone https://github.com/klb2/secrecy-capacity-calculation.git
cd secrecy_capacity
git checkout dev # only if you want to unstable version
pip install .
Usage
Some examples are provided in the examples/ directory.
You can run the code locally or using a service like Binder. If you use Binder,
you do not need a local Python installation and you can simply run the scripts
in your browser.
Version
The code has been developed and tested with the following versions
- Python 3.9
- numpy 1.19
- scipy 1.6
- matplotlib 3.3
- Jupyter 1.0
License and Referencing
This program is licensed under the GPLv3 license. If you in any way use this code for research that results in publications, please cite the original articles listed above and this repository.
You can use the following BibTeX entry for this repository
@online{BesserSecrecyCapacityCalculation,
author = {Besser, Karl-Ludwig},
title = {Algorithms to calculate the secrecy capacity},
subtitle = {Python Implementation},
year = {2021},
url = {https://github.com/klb2/secrecy-capacity-calculation},
version = {0.1.0},
}
Metadata
Release files for secrecy-capacity 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| secrecy_capacity-0.1.0.tar.gz | 23.1 kB | Without provenance | Details for secrecy_capacity-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secrecy_capacity-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for secrecy_capacity-0.1.0-py3-none-any.whl |
Total release size: 48.0 kB
Release files / secrecy_capacity-0.1.0.tar.gz
| Download URL | secrecy_capacity-0.1.0.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30cea80032498b92df10e02668e54b6b97f82aa1fabdc5be21f5e3461a68c393
|
|
BLAKE2b-256 checksum How to use checksums |
5661a9de18115eb34f666b8e519c5defffe3ee590217179c6a453205ea5bdd04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.7
|
Release files / secrecy_capacity-0.1.0-py3-none-any.whl
| Download URL | secrecy_capacity-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46cee3320d878372f3a0ce726332b5983fed90f85b405eb6a800b8d401b49a8a
|
|
BLAKE2b-256 checksum How to use checksums |
2213eb68e2b1719c4180ea862672c7099d9fe7057bd29c5f0b60ced90e68053b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.7
|
Security for secrecy-capacity 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.