I want to know how to convert a byte[] to string. I have variable K an integer array and pwd a byte[] hence the the code bellow is giving me errors?
public void temp()
{
    int[] k = new int[256];
    byte[] pwd;
    int temp = 50;
    k[tmp] = pwd[(tmp % Convert.ToString((string)pwd).Length)];
}
 
    