byte-Array in string mit Hex-Werten wandeln

public string ByteToHexString(byte[] byaInput)
{
    string sOutput = "";

    for (int i = 0; i < byaInput.Length; i++)
    {
        sOutput += byaInput[i].ToString("x2");
    }

    return sOutput;
}