Skip to content

Instantly share code, notes, and snippets.

@harveytoro
Created November 16, 2012 10:45
Show Gist options
  • Save harveytoro/4086345 to your computer and use it in GitHub Desktop.
Save harveytoro/4086345 to your computer and use it in GitHub Desktop.
BigInteger kp;
kp = new BigInteger("17");
BigInteger np;
np = new BigInteger("3233");
BigInteger xp;
xp = new BigInteger("25");
BigInteger E;
E = xp.modPow(kp,np);
//BigInteger result = x.modPow(17, 3233);
System.out.println(E);
BigInteger jp;
jp = new BigInteger("2753");
BigInteger D;
D = E.modPow(jp,np);
System.out.println(D);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment