<PackageReference Include="Microsoft.Identity.Client" Version="4.84.1" />
Microsoft.Identity.Client.Utils.StringExtensions
public static byte[]
ToByteArray(
this string stringInput)
Create an array of bytes representing the UTF-8 encoding of the given string.