title: Looking for best solution for python's base64.b32encode in php
body: <p>I am having a code written in python</p>
  
  <pre><code>from base64 import b32encode, b32decode
  
  somename = 'Karthik Bhat K'
  
  b32encoded = b32encode(somename)
  b32decoded = b32decode(b32encoded)
  </code></pre>
  
  <p>I want to write the b32encode and b32decode code in php because the key generated by python is used by app written in php.</p>
  
  <p>Php does have <code>base64_encode</code> but for base32_encode I didn't find any <code>builtins</code></p>