MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / GenerateRandomString

Method GenerateRandomString

ui/Services/OAuthService.cs:482–490  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

480 }
481
482 private static string GenerateRandomString(int length)
483 {
484 var bytes = RandomNumberGenerator.GetBytes(length);
485 return Convert.ToBase64String(bytes)
486 .Replace("+", "-")
487 .Replace("/", "_")
488 .Replace("=", "")
489 .Substring(0, length);
490 }
491
492 private static string ComputeCodeChallenge(string codeVerifier)
493 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected