Convert byte array to sid string : SecurityIdentifier « Security « C# / C Sharp






Convert byte array to sid string

   

using System;
using System.Security.Principal;
using System.Text;

static class ConvertUtility
{
    public static string ConvertBytesToSidString(byte[] sidBytes)
    {
        string sid = String.Empty;
        sid = new SecurityIdentifier(sidBytes, 0).ToString();
        return sid;
    }


}

   
    
    
  








Related examples in the same category