I don't mean to sound rude, but that being the case you should not be in charge of implementing security. It's all too easy to put in place insecure systems, especially if you come by them in a trial-and-error approach.
Sorry about that, copy/paste error. That should have read:
You seem to assume that "Base64.encodeBase64(signatureBytes).toString()" returns something useful; obviously, it does not.
well that is not included in the code above, but anyway the result is"true"You seem to assume that "sig.verify(signatureBytes).toString()" returns something useful; obviously, it does not.