在Java中有一段代码:

 Base64.getUrlEncoder().encode(bytes);

ASP.NET 中的实现代码为:

char[] padding = { '=' };
Convert.ToBase64String(bytes, Base64FormattingOptions.None).TrimEnd(padding).Replace('+', '-').Replace('/', '_');  

 

 

来自:https://stackoverflow.com/questions/26353710/how-to-achieve-base64-url-safe-encoding-in-c

相关文章:

  • 2022-01-08
  • 2021-07-09
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-06-27
相关资源
相似解决方案