I'm currently reading up on JWTs and have written something to create them. When I created my JWT I noticed that my signature was not being encoded properly.
For instance, given the hash
9B2317C2C941A179130D0D28961AB542C88745658BE328F557422EA0AF8F60E8
My code produces
OUIyMzE3QzJDOTQxQTE3OTEzMEQwRDI4OTYxQUI1NDJDODg3NDU2NThCRTMyOEY1NTc0MjJFQTBBRjhGNjBFOA==
What I'm expecting to get is
myMXwslBoXkTDQ0olhq1QsiHRWWL4yj1V0IuoK+PYOg=
Why are encoded hashes so different and what am I missing?