transcrypto 1.0.2__py3-none-any.whl → 1.1.1__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/aes.py +257 -0
- transcrypto/base.py +1018 -0
- transcrypto/dsa.py +336 -0
- transcrypto/elgamal.py +333 -0
- transcrypto/modmath.py +535 -0
- transcrypto/rsa.py +416 -0
- transcrypto/sss.py +299 -0
- transcrypto/transcrypto.py +1367 -276
- transcrypto-1.1.1.dist-info/METADATA +2257 -0
- transcrypto-1.1.1.dist-info/RECORD +15 -0
- transcrypto-1.0.2.dist-info/METADATA +0 -147
- transcrypto-1.0.2.dist-info/RECORD +0 -8
- {transcrypto-1.0.2.dist-info → transcrypto-1.1.1.dist-info}/WHEEL +0 -0
- {transcrypto-1.0.2.dist-info → transcrypto-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {transcrypto-1.0.2.dist-info → transcrypto-1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
transcrypto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
transcrypto/aes.py,sha256=j7cr4ikefNSrodmBquDejTcRfWZGRVJIE3l2eT1-zl8,11403
|
|
3
|
+
transcrypto/base.py,sha256=WFt87zOTQ6bxVRf9uKmaKxIQ6QQXHYpsclyNCgYNJ_k,35434
|
|
4
|
+
transcrypto/dsa.py,sha256=bzolfbozeHzp21QqMX4tvuzDn0HODaXqbZ6d6gInqWQ,11866
|
|
5
|
+
transcrypto/elgamal.py,sha256=zO1AaSlFFg8AV-H3A6wbAwytrAUqelrEL080OXWB-DM,11715
|
|
6
|
+
transcrypto/modmath.py,sha256=FL9rwOOuzNzFSf7ScMVPwb98sKPzhyA2Cu6uyqLz65M,18616
|
|
7
|
+
transcrypto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
transcrypto/rsa.py,sha256=U6gC-Viya7s0b7hNwhxXoO035V1XB8NFqe1-EB3vwks,16453
|
|
9
|
+
transcrypto/sss.py,sha256=CHZ9B01GgTBvkTXiLP17pPmOog4LZQZi2Kq25Pd1bWo,11382
|
|
10
|
+
transcrypto/transcrypto.py,sha256=ac0qNU3xnxydpWDqzBjIck7yGZXBpRpipR1vwR4AsL4,64822
|
|
11
|
+
transcrypto-1.1.1.dist-info/licenses/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
12
|
+
transcrypto-1.1.1.dist-info/METADATA,sha256=HeUkw_xpbIojpmD_UOrYFUyZ5UMhKTrhFgPbxwi8Lbo,70177
|
|
13
|
+
transcrypto-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
transcrypto-1.1.1.dist-info/top_level.txt,sha256=9IfB0nGtVzQbYok5QIYNOy3coDv2UKX2OZtlFyxFDDQ,12
|
|
15
|
+
transcrypto-1.1.1.dist-info/RECORD,,
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: transcrypto
|
|
3
|
-
Version: 1.0.2
|
|
4
|
-
Summary: Basic crypto primitives, not intended for actual use, but as a companion to --Criptografia, Métodos e Algoritmos--
|
|
5
|
-
Author-email: Daniel Balparda <balparda@github.com>
|
|
6
|
-
License-Expression: Apache-2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/balparda/transcrypto
|
|
8
|
-
Project-URL: PyPI, https://pypi.org/project/transcrypto/
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
-
Classifier: Operating System :: OS Independent
|
|
12
|
-
Classifier: Topic :: Utilities
|
|
13
|
-
Classifier: Topic :: Security :: Cryptography
|
|
14
|
-
Requires-Python: >=3.13.5
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
Dynamic: license-file
|
|
18
|
-
|
|
19
|
-
# TransCrypto
|
|
20
|
-
|
|
21
|
-
Basic crypto primitives, not intended for actual use, but as a companion to "Criptografia, Métodos e Algoritmos".
|
|
22
|
-
|
|
23
|
-
Started in July/2025, by Daniel Balparda. Since version 1.0.2 it is PyPI package:
|
|
24
|
-
|
|
25
|
-
<https://pypi.org/project/transcrypto/>
|
|
26
|
-
|
|
27
|
-
## License
|
|
28
|
-
|
|
29
|
-
Copyright 2025 Daniel Balparda <balparda@github.com>
|
|
30
|
-
|
|
31
|
-
Licensed under the ***Apache License, Version 2.0*** (the "License"); you may not use this file except in compliance with the License. You may obtain a [copy of the License here](http://www.apache.org/licenses/LICENSE-2.0).
|
|
32
|
-
|
|
33
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
34
|
-
|
|
35
|
-
## Use
|
|
36
|
-
|
|
37
|
-
### Install
|
|
38
|
-
|
|
39
|
-
To use in your project just do:
|
|
40
|
-
|
|
41
|
-
```sh
|
|
42
|
-
pip3 install transcrypto
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
and then `from transcrypto import transcrypto` for using it.
|
|
46
|
-
|
|
47
|
-
### TODO
|
|
48
|
-
|
|
49
|
-
TODO: explain module...
|
|
50
|
-
|
|
51
|
-
## Development Instructions
|
|
52
|
-
|
|
53
|
-
### Setup
|
|
54
|
-
|
|
55
|
-
If you want to develop for this project, first install [Poetry](https://python-poetry.org/docs/cli/), but make sure it is like this:
|
|
56
|
-
|
|
57
|
-
```sh
|
|
58
|
-
brew uninstall poetry
|
|
59
|
-
python3.11 -m pip install --user pipx
|
|
60
|
-
python3.11 -m pipx ensurepath
|
|
61
|
-
# re-open terminal
|
|
62
|
-
poetry self add poetry-plugin-export@^1.8 # allows export to requirements.txt (see below)
|
|
63
|
-
poetry config virtualenvs.in-project true # creates venv inside project directory
|
|
64
|
-
poetry config pypi-token.pypi <TOKEN> # add you personal project token
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Now install the project:
|
|
68
|
-
|
|
69
|
-
```sh
|
|
70
|
-
brew install python@3.13 git
|
|
71
|
-
brew update
|
|
72
|
-
brew upgrade
|
|
73
|
-
brew cleanup -s
|
|
74
|
-
# or on Ubuntu/Debian: sudo apt-get install python3.13-venv git
|
|
75
|
-
|
|
76
|
-
git clone https://github.com/balparda/transcrypto.git transcrypto
|
|
77
|
-
cd transcrypto
|
|
78
|
-
|
|
79
|
-
poetry env use python3.13 # creates the venv
|
|
80
|
-
poetry install --sync # HONOR the project's poetry.lock file, uninstalls stray packages
|
|
81
|
-
poetry env info # no-op: just to check
|
|
82
|
-
|
|
83
|
-
poetry run pytest -vvv
|
|
84
|
-
# or any command as:
|
|
85
|
-
poetry run <any-command>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
To activate like a regular environment do:
|
|
89
|
-
|
|
90
|
-
```sh
|
|
91
|
-
poetry env activate
|
|
92
|
-
# will print activation command which you next execute, or you can do:
|
|
93
|
-
source .env/bin/activate # if .env is local to the project
|
|
94
|
-
source "$(poetry env info --path)/bin/activate" # for other paths
|
|
95
|
-
|
|
96
|
-
pytest
|
|
97
|
-
|
|
98
|
-
deactivate
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Updating Dependencies
|
|
102
|
-
|
|
103
|
-
To update `poetry.lock` file to more current versions:
|
|
104
|
-
|
|
105
|
-
```sh
|
|
106
|
-
poetry update # ignores current lock, updates, rewrites `poetry.lock` file
|
|
107
|
-
poetry run pytest
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
To add a new dependency you should:
|
|
111
|
-
|
|
112
|
-
```sh
|
|
113
|
-
poetry add "pkg>=1.2.3" # regenerates lock, updates env
|
|
114
|
-
# also: "pkg@^1.2.3" = latest 1.* ; "pkg@~1.2.3" = latest 1.2.* ; "pkg@1.2.3" exact
|
|
115
|
-
poetry export --format requirements.txt --without-hashes --output requirements.txt
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
If you added a dependency to `pyproject.toml`:
|
|
119
|
-
|
|
120
|
-
```sh
|
|
121
|
-
poetry run pip3 freeze --all # lists all dependencies pip knows about
|
|
122
|
-
poetry lock # re-lock your dependencies, so `poetry.lock` is regenerated
|
|
123
|
-
poetry install # sync your virtualenv to match the new lock file
|
|
124
|
-
poetry export --format requirements.txt --without-hashes --output requirements.txt
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Creating a New Version
|
|
128
|
-
|
|
129
|
-
```sh
|
|
130
|
-
# bump the version!
|
|
131
|
-
poetry version minor # updates 1.6 to 1.7, for example
|
|
132
|
-
# or:
|
|
133
|
-
poetry version patch # updates 1.6 to 1.6.1
|
|
134
|
-
# or:
|
|
135
|
-
poetry version <version-number>
|
|
136
|
-
# (also updates `pyproject.toml` and `poetry.lock`)
|
|
137
|
-
|
|
138
|
-
# publish to GIT, including a TAG
|
|
139
|
-
git commit -a -m "release version 1.0.2"
|
|
140
|
-
git tag 1.0.2
|
|
141
|
-
git push
|
|
142
|
-
git push --tags
|
|
143
|
-
|
|
144
|
-
# prepare package for PyPI
|
|
145
|
-
poetry build
|
|
146
|
-
poetry publish
|
|
147
|
-
```
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
transcrypto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
transcrypto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
transcrypto/transcrypto.py,sha256=CGQ9TfLWVS_1pLMiG4h32Mufp7Ucn4JYgwA-PvCO5Ic,10375
|
|
4
|
-
transcrypto-1.0.2.dist-info/licenses/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
5
|
-
transcrypto-1.0.2.dist-info/METADATA,sha256=oVMr1GxU7lcCMeYVvSf1BN2oA3-MFiuewVJ3DQzH7H4,4372
|
|
6
|
-
transcrypto-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
transcrypto-1.0.2.dist-info/top_level.txt,sha256=9IfB0nGtVzQbYok5QIYNOy3coDv2UKX2OZtlFyxFDDQ,12
|
|
8
|
-
transcrypto-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|