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)
- Host: GitHub
- URL: https://github.com/fabiang/sid
- Owner: fabiang
- License: bsd-2-clause
- Created: 2017-08-15T11:30:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T16:30:27.000Z (over 6 years ago)
- Last Synced: 2024-06-20T03:29:54.598Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SID converter for Go

[](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)