Skip to content

Python library to convert Windows SIDs

License

Notifications You must be signed in to change notification settings

oviliz/python-sid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-sid

Python library to convert Windows SIDs

Install

E.g: python3 setup.py install

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%