Skip to content

Instantly share code, notes, and snippets.

@sureshsarda
Last active May 10, 2018 01:51
Show Gist options
  • Save sureshsarda/6c12143d9b2bc430a2604be281924975 to your computer and use it in GitHub Desktop.
Save sureshsarda/6c12143d9b2bc430a2604be281924975 to your computer and use it in GitHub Desktop.
TestGist.java
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