Strips the padding from the base64url encoded string.
static String stripPadding(String hash) { return hash.replaceAll(r'=', ''); }