Skip to content

Python implementation of the Pohlig Hellman algorithm, used to solve the discrete logarithm problem in cyclic groups, especially in those where the group order is factored from small prime numbers.

Notifications You must be signed in to change notification settings

christiankrug/pohlig_hellman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Pohlig Hellman Python Implementation

The Pohlig-Hellmann algorithm is an algorithm for computing the discrete logarithm problem in a cyclic group. By reducing the problem to subgroups, this happens in significantly fewer steps than with a naive brute force attack, especially fast when the group order is factored out of small prime numbers. First, the prime factors of the group order are determined, then for each of these factors the discrete logarithm problem in the subgroup is solved. The partial results are then unambiguously connected to the overall solution using the Chinese remainder theorem.

About

Python implementation of the Pohlig Hellman algorithm, used to solve the discrete logarithm problem in cyclic groups, especially in those where the group order is factored from small prime numbers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages