in reply to AES/ECB/PKCS#5 encryption

I indicated the padding needed in the original post. Null and Space padding isn't a problem. I can code and decode the token no problem. The java script requires the padding above only I don't know how to generate it.