title: openssl_encrypt works for some strings and dont work other
body: <p>Why is it that <code>openssl_encrypt($plaintext, $cipher, $key, OPENSSL_NO_PADDING);</code> works in some cases and dont work in some.</p>
  <p><strong>This is the code:</strong></p>
  <pre><code>&lt;?php
  $cipher = 'AES-256-ECB';
  $key = 'd61d2cd58d01b234e1800938erf8467k';
  $plaintext = $entityBody;
  if (strlen($plaintext) % 8) {
      $plaintext = str_pad($plaintext, strlen($plaintext) + 8 - strlen($plaintext) % 8, &quot;\0&quot;);    
  }
  $chiperRaw = openssl_encrypt($plaintext, $cipher, $key, OPENSSL_NO_PADDING);    
  $ciphertext = trim(base64_encode($chiperRaw));  
  ?&gt;
  </code></pre>
  <p><strong>For Example:</strong></p>
  <p>it doesnt work for this: <code>index12=123&amp;date=2021-07-20&amp;TKP=TKP&amp;SA=SA&amp;TPP=TPP</code></p>
  <p>and it works for this : <code>index12=123&amp;date=2021-07-20&amp;TKP=TKP&amp;Snd=Snd&amp;SA=SA&amp;TPP=TPP</code></p>
  <p>again it doesnt work for this: <code>index12=123&amp;date=2021-07-20&amp;TKP=TKP&amp;Snd=Snd&amp;GSS=GSS&amp;SA=SA&amp;TPP=TPP</code></p>
  <p>and works for this : <code>index12=123&amp;date=2021-07-20&amp;TKP=TKP&amp;Snd=Snd&amp;GSS=GSS&amp;LI=LI&amp;SA=SA&amp;TPP=TPP&amp;XM=XM</code></p>
  <p><strong>how to get rid of this issue ?</strong></p>