title: Large data not encrypted with RSA Encryption
body: <p><strong>My Problem:</strong></p>
  
  <p>My encryption code <strong><em>working fine for below 64 characters</em></strong>. but if it exceeds 64 character I got following error</p>
  
  <pre><code>javax.crypto.IllegalBlockSizeException: input must be under 64 bytes
  </code></pre>
  
  <p><strong>Encryption code</strong></p>
  
  <pre><code>        cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding);
          cipher.init(Cipher.ENCRYPT_MODE, publicKey);
          encryptedBytes = cipher.doFinal(message.getBytes(StandardCharsets.UTF_8));
          rsaEncrypted= Base64.encodeToString(encryptedBytes, Base64.NO_WRAP);
  </code></pre>
  
  <p><strong>Key generation code</strong></p>
  
  <pre><code>      KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
        keyGen.initialize(512);
        KeyPair keypair = keyGen.genKeyPair();
        PublicKey pub = keypair.getPublic();
        byte[] pubs = pub.getEncoded();
  </code></pre>
  
  <p><strong>My question:</strong></p>
  
  <p>It's possible encrypt large text with 512 bits of keys? Any mistake in my code?</p>
  
  <p>Note: If anyone want full of code I will update later. </p>