transcrypto 1.7.0__py3-none-any.whl → 1.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- transcrypto/__init__.py +1 -1
- transcrypto/base.py +58 -339
- transcrypto/cli/__init__.py +3 -0
- transcrypto/cli/aeshash.py +368 -0
- transcrypto/cli/bidsecret.py +334 -0
- transcrypto/cli/clibase.py +303 -0
- transcrypto/cli/intmath.py +427 -0
- transcrypto/cli/publicalgos.py +877 -0
- transcrypto/profiler.py +10 -7
- transcrypto/transcrypto.py +40 -1986
- {transcrypto-1.7.0.dist-info → transcrypto-1.8.0.dist-info}/METADATA +12 -10
- transcrypto-1.8.0.dist-info/RECORD +23 -0
- transcrypto-1.7.0.dist-info/RECORD +0 -17
- {transcrypto-1.7.0.dist-info → transcrypto-1.8.0.dist-info}/WHEEL +0 -0
- {transcrypto-1.7.0.dist-info → transcrypto-1.8.0.dist-info}/entry_points.txt +0 -0
- {transcrypto-1.7.0.dist-info → transcrypto-1.8.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: transcrypto
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.8.0
|
|
4
4
|
Summary: Basic crypto primitives, not intended for actual use, but as a companion to --Criptografia, Métodos e Algoritmos--
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: cryptography,validation,encryption,signing,random-generation,prime-numbers,aes-encryption,decryption,rsa-cryptography,elgamal-encryption,dsa-algorithm,modular-mathematics,rsa,dsa,elgamal,aes,python,poetry,typer,rich,cli
|
|
8
8
|
Author: Daniel Balparda
|
|
9
9
|
Author-email: balparda@github.com
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
15
|
Classifier: Operating System :: OS Independent
|
|
14
16
|
Classifier: Topic :: Utilities
|
|
15
17
|
Classifier: Topic :: Security :: Cryptography
|
|
@@ -932,7 +934,7 @@ print(priv.RawVerifyShare(secret, tampered)) # ▶ False
|
|
|
932
934
|
|
|
933
935
|
### Setup
|
|
934
936
|
|
|
935
|
-
If you want to develop for this project, first install python 3.
|
|
937
|
+
If you want to develop for this project, first install python 3.12 and [Poetry](https://python-poetry.org/docs/cli/), but to get the versions you will need, we suggest you do it like this (*Linux*):
|
|
936
938
|
|
|
937
939
|
```sh
|
|
938
940
|
sudo apt-get update
|
|
@@ -941,10 +943,10 @@ sudo apt-get install git python3 python3-pip pipx python3-dev python3-venv build
|
|
|
941
943
|
|
|
942
944
|
sudo add-apt-repository ppa:deadsnakes/ppa # install arbitrary python version
|
|
943
945
|
sudo apt-get update
|
|
944
|
-
sudo apt-get install python3.
|
|
946
|
+
sudo apt-get install python3.12
|
|
945
947
|
|
|
946
948
|
sudo apt-get remove python3-poetry
|
|
947
|
-
python3.
|
|
949
|
+
python3.12 -m pipx ensurepath
|
|
948
950
|
# re-open terminal
|
|
949
951
|
pipx install poetry
|
|
950
952
|
poetry --version # should be >=2.1
|
|
@@ -960,11 +962,11 @@ brew update
|
|
|
960
962
|
brew upgrade
|
|
961
963
|
brew cleanup -s
|
|
962
964
|
|
|
963
|
-
brew install git python@3.
|
|
965
|
+
brew install git python@3.12 # install arbitrary python version
|
|
964
966
|
|
|
965
967
|
brew uninstall poetry
|
|
966
|
-
python3.
|
|
967
|
-
python3.
|
|
968
|
+
python3.12 -m pip install --user pipx
|
|
969
|
+
python3.12 -m pipx ensurepath
|
|
968
970
|
# re-open terminal
|
|
969
971
|
pipx install poetry
|
|
970
972
|
poetry --version # should be >=2.1
|
|
@@ -979,7 +981,7 @@ Now install the project:
|
|
|
979
981
|
git clone https://github.com/balparda/transcrypto.git transcrypto
|
|
980
982
|
cd transcrypto
|
|
981
983
|
|
|
982
|
-
poetry env use python3.
|
|
984
|
+
poetry env use python3.12 # creates the venv
|
|
983
985
|
poetry sync # sync env to project's poetry.lock file
|
|
984
986
|
poetry env info # no-op: just to check
|
|
985
987
|
|
|
@@ -1017,7 +1019,7 @@ If you manually added a dependency to `pyproject.toml` you should ***very carefu
|
|
|
1017
1019
|
|
|
1018
1020
|
```sh
|
|
1019
1021
|
rm -rf .venv .poetry poetry.lock
|
|
1020
|
-
poetry env use python3.
|
|
1022
|
+
poetry env use python3.12
|
|
1021
1023
|
poetry install
|
|
1022
1024
|
```
|
|
1023
1025
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
transcrypto/__init__.py,sha256=xSqLQi3EdJgFHKoIIyyWpiVrhzcp52elZFZwwnBzgaE,338
|
|
2
|
+
transcrypto/aes.py,sha256=Sgu02D_994B05dRiJfFy2lvbgWZdP2A9ivzMQntlm7g,14986
|
|
3
|
+
transcrypto/base.py,sha256=lcjD_uCbXpGDgson4KhCPYqqQKb48o4Ek3glqLASbMc,53838
|
|
4
|
+
transcrypto/cli/__init__.py,sha256=VyfdjELABx6yaiAQrFlK7WDa96j2O12umoy1WunqbLw,134
|
|
5
|
+
transcrypto/cli/aeshash.py,sha256=4aWKSwaKmIJKtVpqlyfOQS4OOYl8MYw609m6e3XXLvU,13713
|
|
6
|
+
transcrypto/cli/bidsecret.py,sha256=qZj2xNzAE91YAzYFEm5Xn_T9LyEd54Jv64zsZURepNY,12541
|
|
7
|
+
transcrypto/cli/clibase.py,sha256=-e07YnVdCpSFqgNkGNR7FjM4wXftRuPYhEPRq5uWs6I,10059
|
|
8
|
+
transcrypto/cli/intmath.py,sha256=PAq1AKT0CLl7Z0UqHiSPVlGUfr3HEosqkNVIcDfig2A,14384
|
|
9
|
+
transcrypto/cli/publicalgos.py,sha256=21xUQRXhxpfr47BE-S7jD2N3UK4DxZNrVovoClO8m4A,31366
|
|
10
|
+
transcrypto/constants.py,sha256=qIdXZ90LYZdu5VZ_hKizU04j_wLA0Na0-mSUZ5pOdiY,191233
|
|
11
|
+
transcrypto/dsa.py,sha256=6FW9YtJxL77CZahZ9hIEeoA2imJ24yxK_oao-gOJTME,19933
|
|
12
|
+
transcrypto/elgamal.py,sha256=N-DB0m1BoOjxmqo-qeBTbBi9NPOCigCEJsh0bmcdYgM,20522
|
|
13
|
+
transcrypto/modmath.py,sha256=IwWHlTdCwq87xVcpwL8nbydvKjxgZe7hPTC9aKUF-Y4,21259
|
|
14
|
+
transcrypto/profiler.py,sha256=pVTc_aNhukaSHs60QdWST_sf2mji6FslBiCmuC9tSPw,7368
|
|
15
|
+
transcrypto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
transcrypto/rsa.py,sha256=0MmsfHNTOZKxmqq0LlezoBTs5VzWVrRHqp1oLaVSo2Q,24113
|
|
17
|
+
transcrypto/sss.py,sha256=5-U1aWEruJYdv3-4wWxT5_cs7PGaj27OD0eRYD_k7OY,16924
|
|
18
|
+
transcrypto/transcrypto.py,sha256=6qXHJpNx5_LTIdEA4XFoVD9dcpdcS3zsv0LUUh63740,16326
|
|
19
|
+
transcrypto-1.8.0.dist-info/METADATA,sha256=r0DjPjZZxFBwbHL2sjah-Ov3ODDw_kjc-DHZAKXCN-8,39102
|
|
20
|
+
transcrypto-1.8.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
21
|
+
transcrypto-1.8.0.dist-info/entry_points.txt,sha256=HXJ1yXZJT_9OhLJgEhv2toOpxwhDaIU2HuW91MTJDIg,93
|
|
22
|
+
transcrypto-1.8.0.dist-info/licenses/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
23
|
+
transcrypto-1.8.0.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
transcrypto/__init__.py,sha256=EgL-1w0DMlvXD3_aON4AJeBukDbBXhsMHwINtafJsgA,338
|
|
2
|
-
transcrypto/aes.py,sha256=Sgu02D_994B05dRiJfFy2lvbgWZdP2A9ivzMQntlm7g,14986
|
|
3
|
-
transcrypto/base.py,sha256=yZ95VgRFXkfWdzGygP1fN-sTTgzQ6uFsFJvPSXjzltI,63064
|
|
4
|
-
transcrypto/constants.py,sha256=qIdXZ90LYZdu5VZ_hKizU04j_wLA0Na0-mSUZ5pOdiY,191233
|
|
5
|
-
transcrypto/dsa.py,sha256=6FW9YtJxL77CZahZ9hIEeoA2imJ24yxK_oao-gOJTME,19933
|
|
6
|
-
transcrypto/elgamal.py,sha256=N-DB0m1BoOjxmqo-qeBTbBi9NPOCigCEJsh0bmcdYgM,20522
|
|
7
|
-
transcrypto/modmath.py,sha256=IwWHlTdCwq87xVcpwL8nbydvKjxgZe7hPTC9aKUF-Y4,21259
|
|
8
|
-
transcrypto/profiler.py,sha256=q5TA3uLpL5dPZEcTJDNBQIKbx513NvQWS3TK6Vug7oo,7287
|
|
9
|
-
transcrypto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
transcrypto/rsa.py,sha256=0MmsfHNTOZKxmqq0LlezoBTs5VzWVrRHqp1oLaVSo2Q,24113
|
|
11
|
-
transcrypto/sss.py,sha256=5-U1aWEruJYdv3-4wWxT5_cs7PGaj27OD0eRYD_k7OY,16924
|
|
12
|
-
transcrypto/transcrypto.py,sha256=z6dQRSWJKTBmxVvrd0AUQnkhT6d9ho0vvLROCR8jDYs,83955
|
|
13
|
-
transcrypto-1.7.0.dist-info/METADATA,sha256=TRINhe2XXndRcg9LTq9M_EO5RL6Hp1lNCVtltcfgYT8,39000
|
|
14
|
-
transcrypto-1.7.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
15
|
-
transcrypto-1.7.0.dist-info/entry_points.txt,sha256=HXJ1yXZJT_9OhLJgEhv2toOpxwhDaIU2HuW91MTJDIg,93
|
|
16
|
-
transcrypto-1.7.0.dist-info/licenses/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
17
|
-
transcrypto-1.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|