Python: Large float arithmetic for El Gamal decryption

Context The decryption math formula for the El Gamal method is the following: m = ab^(-k) mod p Specifically in Python, I want to compute the following equivalent: >>> m = (b**(-k) * a) % p The issue in the above Python code is that the numbers inserted would overflow or result in 0.0 due… Read More Python: Large float arithmetic for El Gamal decryption