Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 870 Bytes

README.md

File metadata and controls

55 lines (42 loc) · 870 Bytes

python-sid

Python library to convert Windows SIDs

Example

String input

import sid

mysid = sid.sid('S-1-5-21-2127521184-1604012920-1887927527-72713')
print mysid.base64()

Output

AQUAAAAAAAUVAAAAoGXPfnhLm1/nfIdwCRwBAA==

Base46 input

import sid

mysid = sid.sid('AQUAAAAAAAUVAAAAoGXPfnhLm1/nfIdwCRwBAA==', sid.SID_BASE64)
print mysid

Output

S-1-5-21-2127521184-1604012920-1887927527-72713

Tests

Run tests using

python -m unittest

while in the src/sid directory.

Changelog

  • 0.2
    • Python 3 support
    • Added a few tests
  • 0.1
    • Fix docstrings for documentation
    • Add setup.py
    • Add ldap filter feature
    • Fix sponsor links
    • Initial commit

Sponsored by