aspnet / HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
382 stars 193 forks source link

Where is Base64UrlEncode ? #972

Closed panost closed 6 years ago

panost commented 6 years ago

I tried to see how Base64UrlEncode and Base64UrlDecode are implemented.

It's supposed to be member of a class named "WebEncoders", but I can't find it

I have read a comment that is been migrated to corefx System.Text.Encodings.Web but isn't there also

Tratcher commented 6 years ago

Looking for this? https://github.com/aspnet/Common/blob/5c3ee37fb773db04a1aea6b67e49395e84fda223/shared/Microsoft.Extensions.WebEncoders.Sources/WebEncoders.cs#L197

panost commented 6 years ago

Yes, thank you @Tratcher

This is the version that currently used in Microsoft.AspNetCore.WebUtilities.dll ?

Anyway, If it is, I was disappointed a bit, it's just a wrapper around Convert.Base64xxx methods