Skip to content

Instantly share code, notes, and snippets.

@pandeykumar
Forked from nogweii/Test.java
Last active August 29, 2015 14:23
Show Gist options
  • Save pandeykumar/20589d1d1204d5ba4b58 to your computer and use it in GitHub Desktop.
Save pandeykumar/20589d1d1204d5ba4b58 to your computer and use it in GitHub Desktop.
#!/bin/bash
javac Test.java
java Test
import javax.crypto.Cipher;
class Test {
public static void main(String[] args) {
try {
System.out.println("Hello World!");
int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES");
System.out.println(maxKeyLen);
} catch (Exception e){
System.out.println("Sad world :(");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment