{"id":29817046,"url":"https://github.com/eiz/nt-token","last_synced_at":"2025-07-28T20:11:58.752Z","repository":{"id":302774563,"uuid":"1013541533","full_name":"eiz/nt-token","owner":"eiz","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-04T06:16:32.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T07:19:47.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T04:37:54.000Z","updated_at":"2025-07-04T06:16:35.000Z","dependencies_parsed_at":"2025-07-05T13:01:17.070Z","dependency_job_id":null,"html_url":"https://github.com/eiz/nt-token","commit_stats":null,"previous_names":["eiz/nt-token"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eiz/nt-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiz%2Fnt-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiz%2Fnt-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiz%2Fnt-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiz%2Fnt-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiz","download_url":"https://codeload.github.com/eiz/nt-token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiz%2Fnt-token/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267578003,"owners_count":24110351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-28T20:11:56.527Z","updated_at":"2025-07-28T20:11:58.746Z","avatar_url":"https://github.com/eiz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nt-token\r\n\r\n[![CI](https://github.com/eiz/nt-token/actions/workflows/ci.yml/badge.svg)](https://github.com/eiz/nt-token/actions/workflows/ci.yml)\r\n[![crates.io](https://img.shields.io/crates/v/nt-token.svg)](https://crates.io/crates/nt-token)\r\n[![docs.rs](https://docs.rs/nt-token/badge.svg)](https://docs.rs/nt-token)\r\n[![license](https://img.shields.io/crates/l/nt-token.svg)](LICENSE)\r\n\r\n\u003e **AI DISCLAIMER**: This project was initially generated by OpenAI \"o3\" language model. The compies were supervised heavily but **no warranties express or implied** etc etc.\r\n\r\nMemory-safe, ergonomic helpers for working with Windows access tokens and security identifiers (SIDs) – built on top of the `windows` crate.\r\n\r\n```rust\r\nuse nt_token::{OwnedToken, Sid};\r\nuse windows::Win32::Security::TOKEN_QUERY;\r\n\r\nfn main() -\u003e windows::core::Result\u003c()\u003e {\r\n    let token = OwnedToken::from_current_process(TOKEN_QUERY)?;\r\n    println!(\"elevated = {}\", token.is_elevated()?);\r\n    println!(\"integrity level = 0x{:x}\", token.integrity_level()?);\r\n\r\n    for g in token.groups()? {\r\n        println!(\"group → {}\", g);\r\n    }\r\n    Ok(())\r\n}\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiz%2Fnt-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiz%2Fnt-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiz%2Fnt-token/lists"}