Registry / security / fpylll

fpylll

JSON →
library0.6.4pypypiunverified

fpylll is a Python wrapper for the FPLLL library, providing implementations of lattice reduction algorithms (LLL, BKZ) and other lattice tools. Version 0.6.4 is the latest release. The project is in maintenance mode with infrequent updates.

pip install fpylll
INSTALL
IMPORT
SIG · FPYLLL
F
fpylll
securitypythonv0.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IntegerMatrix
✓ from fpylll import IntegerMatrix
✗ from fpylll import IntegerMatrix

Create an integer matrix and run LLL reduction.

from fpylll import IntegerMatrix, LLL A = IntegerMatrix.from_matrix([[1,2,3],[4,5,6],[7,8,10]]) B, _ = LLL.reduction(A) print(B)
Debug
Known issues
breakingIn version 0.6.0, the import path for core classes changed. Previously 'from fpylll.fplll.gso import GSO' now must be 'from fpylll import GSO'.
fix
Use top-level imports: from fpylll import IntegerMatrix, LLL, GSO, BKZ
affects: >=0.6.0
deprecatedThe function 'fpylll.fplll.gso.MatGSO' is deprecated; use 'fpylll.GSO.Mat' instead.
fix
Replace MatGSO with GSO.Mat
affects: >=0.5.0
gotchaIntegerMatrix uses 0-based indexing, but many lattice examples in papers use 1-based. Off-by-one errors are common when porting code.
fix
Verify matrix dimensions: rows = number of basis vectors, columns = dimension.
affects: all
gotchaLLL.reduction returns a tuple (reduced_matrix, transformation_matrix). Forgetting to unpack the tuple leads to TypeError.
fix
Always use: B, T = LLL.reduction(A)
affects: all
Upgrade
Version history
0.6.4latest on PyPI · released May 29, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
fpylll — pip install fpylll · libregistry