public static Integer CalculateSecretExponent(Integer exponent, Integer phi) => Integer.GetModInverse(exponent, phi);