I need to efficiently store a byte[] into a JWT claim value specifically.
Is there anything more efficient than converting the byte[] to base64URL?
i.e.
Microsoft.AspNetCore.WebUtilities.Base64UrlTextEncoder.Encode(arrToEnc);
Ultimate goal is to encode a List<UInt16> such that each UInt16 is at most 2 bytes(after normal JWT decode).
Considering byte[] -> UTF8 String. i.e. System.Text.Encoding.UTF8.GetString(arrToEnc);
This is completely separate from how JWT's in general use Base64 to encode them...
Thanks..