Skip to content

Commit 3c3bc43

Browse files
committed
Merge pull request #8 from sspreitzer/documentclass
Add documentation
2 parents 180f52b + f28eeb2 commit 3c3bc43

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,33 @@
22

33
Python library to convert Windows SIDs
44

5-
## TODO
5+
## Example
66

7-
* Documentation in README.md
7+
String input
8+
```python
9+
import sid
10+
11+
mysid = sid.sid('S-1-5-21-2127521184-1604012920-1887927527-72713')
12+
print mysid.base64()
13+
```
14+
15+
Output
16+
```
17+
AQUAAAAAAAUVAAAAoGXPfnhLm1/nfIdwCRwBAA==
18+
```
19+
20+
Base46 input
21+
```python
22+
import sid
23+
24+
mysid = sid.sid('AQUAAAAAAAUVAAAAoGXPfnhLm1/nfIdwCRwBAA==', sid.SID_BASE64)
25+
print mysid
26+
```
27+
28+
Output
29+
```
30+
S-1-5-21-2127521184-1604012920-1887927527-72713
31+
```
832

933
## Changelog
1034
* 0.1

0 commit comments

Comments
 (0)