title: Decode base64URL to base64 -- Swift
body: <p>I haven't found properly way how to decode base64URL to base64 format in swift. </p>
  
  <p>According to <a href="http://kjur.github.io/jsjws/tool_b64udec.html" rel="noreferrer">base64url to base64</a> <code>hJQWHABDBjoPHorYF5xghQ</code>(base64URL) should be <code>hJQWHABDBjoPHorYF5xghQ==</code>(base64). Here could be more differences.</p>
  
  <p>There are no solutions on stackoverflow. </p>