System.out.println("**Sample 1 : Encryption**");
System.out.println("Original message : [" + new String(msg) + "]");
System.out.println("Size : [" + new String(msg).length() + "]");
tempEncrypt = asymmetricKeyCipher.encrypt(msg);
System.out.println("**Sample 2 : Decryption**");
tempDecrypt = asymmetricKeyCipher.decrypt(tempEncrypt);
tmpStr = new String(tempDecrypt);
System.out.println("message : [" + tmpStr + "]");
System.out.println("Size : [" + tmpStr.length() + "]");
if (new String(msg).equals(tmpStr)) {
System.out.println("OK - Message is equal before and after encryption/decryption !");