code: public static byte[] encryptWithPublicKey(String base64PublicKeyData, byte[] data)
              throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException,
              NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException {
          return encryptWithPublicKey(base64PublicKeyData, data, DEFAULT_CIPHER_TRANSFORMATION,
                  DEFAULT_PADDING_SIZE);
      }
docs: Encrypt data with RSA public key, using {@link #DEFAULT_CIPHER_TRANSFORMATION}.
  
  <p>
  Note: input data is divided into chunks of
  {@code size = key's size (in bytes) - paddingSizeInBytes}, so that long input data can be
  encrypted.
  </p>
  
  @param base64PublicKeyData
  RSA public key in base64 (base64 of {@link RSAPublicKey#getEncoded()})
  @param data
  @return
  @throws InvalidKeyException
  @throws NoSuchAlgorithmException
  @throws InvalidKeySpecException
  @throws NoSuchPaddingException
  @throws IllegalBlockSizeException
  @throws BadPaddingException
  @throws IOException