Skip to content

sspreitzer/python-sid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python library to convert Windows SIDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages