After encoding in base64, encode in ascii charset.
Removed test-sign shell script and made it in Python.
Not encoding ascii at database level. Pointless.
Signature validation fixed.