Which is the proper way to convert a byte[] to a string in order to have the expected Rijndael format?
问题 I have problem when I transform a byte[] to a string . I have used these ways so far: System.Text.Encoding.UTF8.GetString(byteArray); System.Text.Encoding.UTF8.GetString(byteArray); I use Rijndael in order to encrypt some parameters to send them in an API and I follow this Microsoft-Documentation. When I encrypt and decrypt as the documentation says everything works fine. In the documentation there is no need for conversion byte[] to a string . But in order to send it to the API I have to put