Elgamal Encryption, Cybersecurity, Encryption, Cryptography.
c22=(pow(Y2,r2,p)*c21) % p print (f"\nEncrypted\nc11={c11}\nc12={c12}\nc22={c22}\n") print("First removing Alice's key then Bob's") Alice_remove=(c22*libnum.invmod(pow(c12,x2,p),p)) % p M_recovered=(Alice_remove*libnum.invmod(pow(c11,x1,p),p)) % p m_rec=