{"id":23441012,"url":"https://github.com/simionrobert/token-manager","last_synced_at":"2025-04-09T20:44:39.118Z","repository":{"id":78366879,"uuid":"114098828","full_name":"simionrobert/Token-Manager","owner":"simionrobert","description":"C++ Token Objects Manager (certificates, keys etc.)","archived":false,"fork":false,"pushed_at":"2018-01-31T14:41:06.000Z","size":3909,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T09:58:12.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/simionrobert.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}},"created_at":"2017-12-13T09:10:05.000Z","updated_at":"2024-05-20T08:37:20.000Z","dependencies_parsed_at":"2023-03-04T07:16:03.747Z","dependency_job_id":null,"html_url":"https://github.com/simionrobert/Token-Manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simionrobert%2FToken-Manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simionrobert%2FToken-Manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simionrobert%2FToken-Manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simionrobert%2FToken-Manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simionrobert","download_url":"https://codeload.github.com/simionrobert/Token-Manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248110948,"owners_count":21049568,"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","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":"2024-12-23T16:28:59.188Z","updated_at":"2025-04-09T20:44:39.110Z","avatar_url":"https://github.com/simionrobert.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Token-Manager\nThis is a C++ library for managing cryptografic operations on a token. \n\n## Getting Started\n\n**Project Currently in Development**\n\n## Description\n\n*TokenManagerLibrary* is the main library. The library can be used by a GUI Interface.\n\n*TokenManagerTest* is used for testing the library. (useful for development)\n\n*TokenService* is a C++ Windows Service which automatically imports certificates from tokens to the Windows Store. However, it can be configured not to import by setting a register value, whose address is HKEY_LOCAL_MACHINE\\Software\\TokenManager\\Service. On 64 bit windows, it is HKEY_LOCAL_MACHINE\\Software\\WOW6432Node\\TokenManager\\Service\n\nIt uses eTPKCS11.dll, an implementation of PKCS#11 standard.\n\n**Prequesties**:\n- eTPKCS11.dll in C:/Windows/system32\n- github extension for visual studio\n\n**How to import in Visual Studio**\n1. On the git page click **Clone or Download** \u003e **Open in visual studio** button.\n2. In visual studio click Clone button. \n3. In Solution Explorer double click TokenManager.sln or you can click on the .sln file direcly in the clone window (same windows as in the 2-nd step).\n4. From now on you can sync with the origin/master when you like.\n\nFor those who don't have **Open in visual studio** button\n1. Copy the link from  **Clone or Download** button\n2. In visual Studio click Team \u003e Manage Connections \u003e LocalGit Repositories \u003e Clone \u003e Enter url \u003e Click **clone** button\n3. In Solution Explorer double click TokenManager.sln or you can click on the .sln file direcly in the clone window (same windows as in the 2-nd step).\n4. From now on you can sync with the origin/master when you like.\n\n## Build\n**How to build TokenManagerLibrary**:\n1. Right click TokenManagerLibrary \u003e Properties \u003e C/C++ \u003e General \u003e Additional Include Directories and put the directory path of OpenSSL's include folder (ex: pathToProject\\TokenManager\\TokenManagerLibrary\\Libraries\\Build-OpenSSL-VC-32-dbg\\include)\n\n3. Right click TokenManagerLibrary \u003e Properties \u003e Linker \u003e General \u003e Additional Library Directories and put the directory path of OpenSSL's libs folder (ex: pathToProject\\TokenManager\\TokenManagerLibrary\\Libraries\\Build-OpenSSL-VC-32-dbg\\lib)\n\n4. Right click TokenManagerLibrary \u003e Properties \u003e Linker \u003e Input \u003eAdditional Dependencies and put the name of the OpenSSL's libraries to import them. (ex: libeay32.lib, ssleay32.lib)\n\n5. Right click TokenManagerLibrary \u003e General \u003e Character Set \u003e set to Multy-Byte Character Set\n\n**How to build TokenManagerTest**:\n1. Right click Solution \u003e Properties \u003e Common Properties \u003e StarupProject \u003eSingle startup project \u003e TokenManagerTest\n\n2. Right click TokenManagerTest \u003e Properties \u003e C/C++ \u003e General \u003e Additional Include Directories and put the directory path of TokenManagerLibrary.h (ex: pathToProject\\TokenManager\\TokenManagerLibrary)\n\n3. Right click TokenManagerTest \u003e Properties \u003e Linker \u003e General \u003e Additional Library Directories and put the directory path of TokenManagerLibrary.dll (ex: pathToProject\\TokenManager\\Debug)\n\n4. Right click TokenManagerTest \u003e Properties \u003e Linker \u003e Input \u003eAdditional Dependencies and put the name of the library to import \n(ex: TokenManagerLibrary.lib)\n\n5. Right click TokenManagerTest \u003e General \u003e Character Set \u003e set to Multy-Byte Character Set\n\n**How to build TokenService**:\n1. Do the same steps described above, but for TokenService.\n\n**How to build for an external project which uses the library**\n\nThe same steps described at TokenManagerTest will be done on an external project, including:\n- include in your project TokenManagerLibrary.h from pathToProject\\TokenManager\\TokenManagerLibrary (it's the same, it's not necessary to copy it)\n\n**Build Notes**:\n\nError SDK Version: Right click TokenManagerLibrary \u003e Retarget projects. \nIf this doesn't work, try to  Right click TokenManagerLibrary \u003e Properties \u003e General \u003e Platform Toolset and set what toolset you have.\n\nError Platform Toolset: Right click TokenManagerLibrary \u003e Properties \u003e General \u003e Platform Toolset \u003e Select what toolset you have (same for test)\n\n## How to run the Service\n1. Register as a windows service\n- In cmd, write sc.exe create TokenService binPath= \"pathToProject\\TokenManager\\Debug\\TokenService.exe\"\n\n2. The service must run with the current logged on user rights in order to be able to import the certificates on his behalf:\n- open services.msc\n- find TokenService\n- right click -\u003e Properties -\u003e Log On -\u003eThis accout -\u003eWrite your account -\u003eWrite password -\u003eApply\n\n3. Start the service from TASK Manager\n- CTRL+SHIFT+ESC, then Services, then right click on TokenService, then Start\n\n4. How to start the service functionality\n```\nServiceManager* serviceManager = new ServiceManager();\nserviceManager-\u003esetServiceActivityStatus(true);\n```\nYou can also manually set the register value to 1.\n```\nHKEY_LOCAL_MACHINE\\Software\\TokenManager\\Service. \nOn 64 bit windows, it is HKEY_LOCAL_MACHINE\\Software\\WOW6432Node\\TokenManager\\Service\n```\n5. Done\n\n6. Remove Service\n- sc.exe delete TokenService (if not, stop the process)\n\n\n**Aditional notes:**\nIf you have some issues referring parts of code in the master branch add them in the issues section.\n\n## Authors\n\n* **Simion Robert** (https://github.com/simionrobert)\n* **Dedita Vlad** (https://github.com/vladdedita)\n* **Lica Alexandru** (https://github.com/licaalexandru)\n* **Stratulat Adrian** (https://github.com/Adistratulat)\n\n* **Honceriu Tudor** (https://github.com/Tudorikass)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimionrobert%2Ftoken-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimionrobert%2Ftoken-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimionrobert%2Ftoken-manager/lists"}