pub fn to_string_sid(sid: &[u8]) -> ForensicResult<String>Expand description
Converts a binary SID to a string
https://learn.microsoft.com/es-es/windows/win32/secauthz/sid-components?redirectedfrom=MSDN
use forensic_rs::utils::win::to_string_sid;
// Builtin/Administrators
assert_eq!("S-1-5-32-544", to_string_sid(&[0x01,0x02,0x00,0x00,0x00,0x00,0x00,0x05,0x20,0x00,0x00,0x00,0x20,0x02,0x00,0x00]).unwrap());