title: base64 url safe removes =
body: <p>The following code(using commons codec Base64):</p>
  
  <pre><code>  byte[] a = Hex.decodeHex("9349c513ed080dab".toCharArray());
    System.out.println(Base64.encodeBase64URLSafeString(a));
    System.out.println(Base64.encodeBase64String(a));
  </code></pre>
  
  <p>gives the following output:</p>
  
  <pre><code>k0nFE-0IDas         //should be k0nFE-0IDas=
  k0nFE+0IDas=
  </code></pre>
  
  <p><code>Base64.encodeBase64URLSafeString(a)</code> returns <code>k0nFE-0IDas</code> instead of <code>k0nFE-0IDas=</code>. Why is this happening?</p>