Last active
May 10, 2018 01:51
-
-
Save sureshsarda/6c12143d9b2bc430a2604be281924975 to your computer and use it in GitHub Desktop.
TestGist.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws Exception { | |
int p = 43; // very large prime number | |
int q = 59; // very large prime number | |
int n = p * q; | |
int p1q1 = (p - 1) * (q - 1); | |
int e = 13; // gcd(e, p1a1) = 1 | |
String message = "HELLO"; | |
byte[] bytes = message.getBytes(); | |
for (int i = 0; i < bytes.length; i++) { | |
System.out.println(Byte.toString(bytes[i])); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment