Created
November 4, 2017 09:41
-
-
Save mataprasad/23566b1dde487b63b047e7bd906d820a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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