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