foxmath 0.20.0__tar.gz → 0.20.2__tar.gz
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.
- {foxmath-0.20.0 → foxmath-0.20.2}/LICENSE +0 -0
- {foxmath-0.20.0/src/foxmath.egg-info → foxmath-0.20.2}/PKG-INFO +3 -2
- {foxmath-0.20.0 → foxmath-0.20.2}/README.md +525 -524
- {foxmath-0.20.0 → foxmath-0.20.2}/pyproject.toml +61 -61
- {foxmath-0.20.0 → foxmath-0.20.2}/setup.cfg +0 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath/__init__.py +111 -111
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath/foxmath.py +3636 -3644
- {foxmath-0.20.0 → foxmath-0.20.2/src/foxmath.egg-info}/PKG-INFO +3 -2
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath.egg-info/SOURCES.txt +0 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath.egg-info/dependency_links.txt +0 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath.egg-info/entry_points.txt +0 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/src/foxmath.egg-info/top_level.txt +0 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/tests/test_cli.py +1174 -1152
- {foxmath-0.20.0 → foxmath-0.20.2}/tests/test_cryptosystems.py +6 -0
- {foxmath-0.20.0 → foxmath-0.20.2}/tests/test_foxmath.py +1279 -1279
- {foxmath-0.20.0 → foxmath-0.20.2}/tests/test_mersenne.py +0 -0
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foxmath
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.2
|
|
4
4
|
Summary: Minimalist CLI & library for number theory and cryptography: Shanks's SQUFOF, Quadratic Sieve & Dixon factoring, Lenstra ECM, Pollard p-1, Lucas-Lehmer Mersenne tests, Fermat factor, RSA & Diffie-Hellman cryptosystems, BSGS discrete log, arithmetic functions (mu, sigma, tau), Jacobi symbol, Tonelli-Shanks, elliptic curves, CRT, and continued fractions.
|
|
5
5
|
Author-email: Abhrankan Chakrabarti <abhrankan@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -42,7 +42,7 @@ Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
|
|
|
42
42
|
- Jacobi symbol (jacobi)
|
|
43
43
|
- Solovay–Strassen probabilistic primality test (solovay)
|
|
44
44
|
- Modular square root via Tonelli-Shanks (sqrtmod)
|
|
45
|
-
-
|
|
45
|
+
- Miller-Rabin primality test: deterministic for n < 3.3 × 10²⁴ via 13 bases, strong probable prime above (isprime)
|
|
46
46
|
- Prime factorization via Pollard's rho & trial division (factor)
|
|
47
47
|
- Discrete logarithm solver via Baby-step Giant-step (dlog)
|
|
48
48
|
- Euler's totient φ(n) and Carmichael λ(n) (totient)
|
|
@@ -309,6 +309,7 @@ Time: 68 µs
|
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
```bash
|
|
312
|
+
# Exact deterministic for n < 3.3e24; strong probable prime above
|
|
312
313
|
foxmath isprime 104729
|
|
313
314
|
```
|
|
314
315
|
```
|