An open API service indexing awesome lists of open source software.

https://github.com/fabiang/sid

Converter for Security Identifiers (SID)
https://github.com/fabiang/sid

Last synced: 10 months ago
JSON representation

Converter for Security Identifiers (SID)

Awesome Lists containing this project

README

          

# SID converter for Go

![Github Actions Go workflow status](https://github.com/fabiang/sid/workflows/Go/badge.svg)
[![godoc.org/github.com/fabiang/sid](https://img.shields.io/badge/godoc-latest-blue)](https://godoc.org/github.com/fabiang/sid)

Converter for Security Identifiers (SID) from binary to string.

## Installation

```
go get github.com/fabiang/sid
```

## Usage

```go
import (
"fmt"
"log"

"github.com/fabiang/sid"
)

func main() {
mysid := []byte{
1,
5,
0,
0,
0,
0,
0,
5,
21,
0,
0,
0,
196,
235,
38,
74,
26,
193,
247,
92,
104,
142,
125,
166,
107,
6,
0,
0}

converted, err := sid.ConvertToString(mysid)
if err != nil {
log.Fatal(err)
}

fmt.Printf("SID: %s\n", converted)
}
```

## License

[BSD 2-Clause License](LICENSE)