foxmath 0.20.3__tar.gz → 0.20.4__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.3/src/foxmath.egg-info → foxmath-0.20.4}/PKG-INFO +6 -6
- {foxmath-0.20.3 → foxmath-0.20.4}/README.md +5 -5
- {foxmath-0.20.3 → foxmath-0.20.4}/pyproject.toml +1 -1
- {foxmath-0.20.3 → foxmath-0.20.4/src/foxmath.egg-info}/PKG-INFO +6 -6
- {foxmath-0.20.3 → foxmath-0.20.4}/LICENSE +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/setup.cfg +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath/__init__.py +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath/foxmath.py +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath.egg-info/SOURCES.txt +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath.egg-info/dependency_links.txt +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath.egg-info/entry_points.txt +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/src/foxmath.egg-info/top_level.txt +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/tests/test_cli.py +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/tests/test_cryptosystems.py +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/tests/test_foxmath.py +0 -0
- {foxmath-0.20.3 → foxmath-0.20.4}/tests/test_mersenne.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foxmath
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.4
|
|
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
|
|
@@ -33,17 +33,17 @@ Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
|
|
|
33
33
|
- Dixon's random squares integer factorization: sub-exponential integer factorization with quadratic residue factor base and GF(2) linear algebra (dixon)
|
|
34
34
|
- Lenstra's elliptic curve factorization (ECM): multi-curve two-stage factoring with Weierstrass curves and SplitMix64 PRNG (ecm)
|
|
35
35
|
- Two-stage Pollard's p-1 integer factorization: Stage 1 prime-power exponentiation with automatic prime backtracking and Stage 2 prime difference table (pm1)
|
|
36
|
-
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and prime exponent search (mersenne)
|
|
36
|
+
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and live-streaming prime exponent search (--list) (mersenne)
|
|
37
37
|
- Euclid–Euler perfect number generator and test: 2^(p-1) * (2^p - 1) (perfect)
|
|
38
38
|
- Fermat's difference of squares factorization: fast factoring when factors are close, with configurable precision, interval, and iteration offset (fermat)
|
|
39
39
|
- Textbook RSA cryptosystem: key generation, encryption, CRT-accelerated decryption, and multi-method modulus crack (Pollard's ρ & Fermat's attack) (rsa)
|
|
40
|
-
- Diffie-Hellman key exchange: key generation, shared secret derivation, and BSGS discrete log attack (dh)
|
|
40
|
+
- Diffie-Hellman key exchange: key generation, RFC 3526 peer key bounds validation (2 <= y <= p - 2), shared secret derivation, and BSGS discrete log attack (dh)
|
|
41
41
|
- Legendre symbol
|
|
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
|
-
- Prime factorization via Pollard's rho & trial division (factor)
|
|
46
|
+
- Prime factorization via Pollard's rho & trial division with early stderr composite advisory (factor)
|
|
47
47
|
- Discrete logarithm solver via Baby-step Giant-step (dlog)
|
|
48
48
|
- Euler's totient φ(n) and Carmichael λ(n) (totient)
|
|
49
49
|
- Multiplicative order and primitive roots (order)
|
|
@@ -87,7 +87,7 @@ Check which version you have installed:
|
|
|
87
87
|
foxmath --version
|
|
88
88
|
```
|
|
89
89
|
```
|
|
90
|
-
foxmath 0.
|
|
90
|
+
foxmath 0.20.4
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
## Usage Examples
|
|
@@ -211,7 +211,7 @@ M_13 = 2^13 - 1 = 8191
|
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
```bash
|
|
214
|
-
# List all Mersenne prime exponents up to limit
|
|
214
|
+
# List all Mersenne prime exponents up to limit (streams live as primes are found)
|
|
215
215
|
foxmath mersenne --list --limit 31
|
|
216
216
|
```
|
|
217
217
|
```
|
|
@@ -14,17 +14,17 @@ Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
|
|
|
14
14
|
- Dixon's random squares integer factorization: sub-exponential integer factorization with quadratic residue factor base and GF(2) linear algebra (dixon)
|
|
15
15
|
- Lenstra's elliptic curve factorization (ECM): multi-curve two-stage factoring with Weierstrass curves and SplitMix64 PRNG (ecm)
|
|
16
16
|
- Two-stage Pollard's p-1 integer factorization: Stage 1 prime-power exponentiation with automatic prime backtracking and Stage 2 prime difference table (pm1)
|
|
17
|
-
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and prime exponent search (mersenne)
|
|
17
|
+
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and live-streaming prime exponent search (--list) (mersenne)
|
|
18
18
|
- Euclid–Euler perfect number generator and test: 2^(p-1) * (2^p - 1) (perfect)
|
|
19
19
|
- Fermat's difference of squares factorization: fast factoring when factors are close, with configurable precision, interval, and iteration offset (fermat)
|
|
20
20
|
- Textbook RSA cryptosystem: key generation, encryption, CRT-accelerated decryption, and multi-method modulus crack (Pollard's ρ & Fermat's attack) (rsa)
|
|
21
|
-
- Diffie-Hellman key exchange: key generation, shared secret derivation, and BSGS discrete log attack (dh)
|
|
21
|
+
- Diffie-Hellman key exchange: key generation, RFC 3526 peer key bounds validation (2 <= y <= p - 2), shared secret derivation, and BSGS discrete log attack (dh)
|
|
22
22
|
- Legendre symbol
|
|
23
23
|
- Jacobi symbol (jacobi)
|
|
24
24
|
- Solovay–Strassen probabilistic primality test (solovay)
|
|
25
25
|
- Modular square root via Tonelli-Shanks (sqrtmod)
|
|
26
26
|
- Miller-Rabin primality test: deterministic for n < 3.3 × 10²⁴ via 13 bases, strong probable prime above (isprime)
|
|
27
|
-
- Prime factorization via Pollard's rho & trial division (factor)
|
|
27
|
+
- Prime factorization via Pollard's rho & trial division with early stderr composite advisory (factor)
|
|
28
28
|
- Discrete logarithm solver via Baby-step Giant-step (dlog)
|
|
29
29
|
- Euler's totient φ(n) and Carmichael λ(n) (totient)
|
|
30
30
|
- Multiplicative order and primitive roots (order)
|
|
@@ -68,7 +68,7 @@ Check which version you have installed:
|
|
|
68
68
|
foxmath --version
|
|
69
69
|
```
|
|
70
70
|
```
|
|
71
|
-
foxmath 0.
|
|
71
|
+
foxmath 0.20.4
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Usage Examples
|
|
@@ -192,7 +192,7 @@ M_13 = 2^13 - 1 = 8191
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
|
-
# List all Mersenne prime exponents up to limit
|
|
195
|
+
# List all Mersenne prime exponents up to limit (streams live as primes are found)
|
|
196
196
|
foxmath mersenne --list --limit 31
|
|
197
197
|
```
|
|
198
198
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "foxmath"
|
|
7
|
-
version = "0.20.
|
|
7
|
+
version = "0.20.4"
|
|
8
8
|
description = "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."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foxmath
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.4
|
|
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
|
|
@@ -33,17 +33,17 @@ Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
|
|
|
33
33
|
- Dixon's random squares integer factorization: sub-exponential integer factorization with quadratic residue factor base and GF(2) linear algebra (dixon)
|
|
34
34
|
- Lenstra's elliptic curve factorization (ECM): multi-curve two-stage factoring with Weierstrass curves and SplitMix64 PRNG (ecm)
|
|
35
35
|
- Two-stage Pollard's p-1 integer factorization: Stage 1 prime-power exponentiation with automatic prime backtracking and Stage 2 prime difference table (pm1)
|
|
36
|
-
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and prime exponent search (mersenne)
|
|
36
|
+
- Lucas–Lehmer deterministic primality test for Mersenne numbers M_p = 2^p - 1 and live-streaming prime exponent search (--list) (mersenne)
|
|
37
37
|
- Euclid–Euler perfect number generator and test: 2^(p-1) * (2^p - 1) (perfect)
|
|
38
38
|
- Fermat's difference of squares factorization: fast factoring when factors are close, with configurable precision, interval, and iteration offset (fermat)
|
|
39
39
|
- Textbook RSA cryptosystem: key generation, encryption, CRT-accelerated decryption, and multi-method modulus crack (Pollard's ρ & Fermat's attack) (rsa)
|
|
40
|
-
- Diffie-Hellman key exchange: key generation, shared secret derivation, and BSGS discrete log attack (dh)
|
|
40
|
+
- Diffie-Hellman key exchange: key generation, RFC 3526 peer key bounds validation (2 <= y <= p - 2), shared secret derivation, and BSGS discrete log attack (dh)
|
|
41
41
|
- Legendre symbol
|
|
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
|
-
- Prime factorization via Pollard's rho & trial division (factor)
|
|
46
|
+
- Prime factorization via Pollard's rho & trial division with early stderr composite advisory (factor)
|
|
47
47
|
- Discrete logarithm solver via Baby-step Giant-step (dlog)
|
|
48
48
|
- Euler's totient φ(n) and Carmichael λ(n) (totient)
|
|
49
49
|
- Multiplicative order and primitive roots (order)
|
|
@@ -87,7 +87,7 @@ Check which version you have installed:
|
|
|
87
87
|
foxmath --version
|
|
88
88
|
```
|
|
89
89
|
```
|
|
90
|
-
foxmath 0.
|
|
90
|
+
foxmath 0.20.4
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
## Usage Examples
|
|
@@ -211,7 +211,7 @@ M_13 = 2^13 - 1 = 8191
|
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
```bash
|
|
214
|
-
# List all Mersenne prime exponents up to limit
|
|
214
|
+
# List all Mersenne prime exponents up to limit (streams live as primes are found)
|
|
215
215
|
foxmath mersenne --list --limit 31
|
|
216
216
|
```
|
|
217
217
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|