Skip to content

Instantly share code, notes, and snippets.

@mataprasad
Created November 4, 2017 09:41
Show Gist options
  • Save mataprasad/23566b1dde487b63b047e7bd906d820a to your computer and use it in GitHub Desktop.
Save mataprasad/23566b1dde487b63b047e7bd906d820a to your computer and use it in GitHub Desktop.
package CrossPlatformAESEncryption;
import CrossPlatformAESEncryption.Helper.CryptoHelper;
public class Program {
public static void main(String args[]) {
try{
String input = "Text to encrypt";
System.out.println("input:" + input);
String cipher = CryptoHelper.encrypt(input);
System.out.println("cipher:" + cipher);
//cipher = "cSeTlY/nakstEWZ9EOzi2A==";
//System.out.println("cipher:" + cipher);
String output = CryptoHelper.decrypt(cipher);
System.out.println("output:" + output);
}catch (Exception e){
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment