{"id":26397291,"url":"https://github.com/thalesgroup/luna-samples","last_synced_at":"2025-10-29T23:40:05.833Z","repository":{"id":263074855,"uuid":"874054528","full_name":"ThalesGroup/luna-samples","owner":"ThalesGroup","description":"A treasure chest providing first-class samples of source codes to use or discover the many features of a Luna HSM. ","archived":false,"fork":false,"pushed_at":"2025-03-14T19:42:36.000Z","size":162,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-14T20:34:47.824Z","etag":null,"topics":["cryptography-tools","hsm","luna","thales"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThalesGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T07:14:57.000Z","updated_at":"2025-03-14T19:42:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"503931d7-bb64-46ea-85fe-52272d01a38e","html_url":"https://github.com/ThalesGroup/luna-samples","commit_stats":null,"previous_names":["thalesgroup/luna-samples"],"tags_count":0,"template":false,"template_full_name":"ThalesGroup/template-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fluna-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fluna-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fluna-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalesGroup%2Fluna-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThalesGroup","download_url":"https://codeload.github.com/ThalesGroup/luna-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031131,"owners_count":20386534,"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":["cryptography-tools","hsm","luna","thales"],"created_at":"2025-03-17T12:17:18.928Z","updated_at":"2025-10-29T23:40:00.792Z","avatar_url":"https://github.com/ThalesGroup.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [ LUNA SAMPLES ]\n\nThis repository contains various sample codes designed to work across all variants of [Luna General Purpose HSMs](https://cpl.thalesgroup.com/encryption/hardware-security-modules/general-purpose-hsms), unless otherwise noted in the comments. These variants includes\n- [Luna Network HSM 7](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/luna-sa-network-attached-hsm-pb.pdf).\n- [Luna PCIe HSM 7](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/field_document/2024-04/Thales-Luna-PCIe-HSM-pb.pdf).\n- [Luna USB HSM (Luna U700)](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/field_document/2022-09/luna-usb-hsm-pb.pdf).\n- [Luna Cloud HSM a.k.a Data Protection on Demand(DPoD)](https://cpl.thalesgroup.com/sites/default/files/content/solution_briefs/data-protection-on-demand-services-sb.pdf).\n- Luna G5 (EOL - Sep-2025).\n- Previous Generation of Luna HSM.\n\n\u003cbr\u003e\u003cbr\u003e\n\nFeatures -\n\n+ **Universal Compatibility**: The sample codes are compatible with all Luna HSM variants unless explicitly mentioned.\n\n+ **Well-Documented**: Each sample code is thoroughly commented to explain its purpose and functionality.\n\n+ **Tested**:  All samples have been tested and should work under the right conditions. Some samples may require specific policies to be enabled.\n\n+ **Well-Formatted**: Samples are well-formatted, easy to read, properly indented, and free from unnecessary comments and other extraneous material.\n\n+ **Topics Covered**: The samples in this repository would cover the following topics:\n\t- PKCS#11.\n\t- Luna JSP.\n\t- Luna RestAPI.\n\t- Luna Functionality Module.\n\t- Python-pkcs11.\n+ **Languages Covered**: Samples available for C, Java and Python3.\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Content\n\n| Directory Name  | Description   |\n| --- | --- |\n| C_Samples | Pkcs11 samples written in C language. |\n| LunaJSP_Samples | Java samples that uses LunaProvider (Luna JSP). |\n| RestAPI-Python_Samples | Python3 based Luna REST-API samples for Luna Network HSM. |\n| Python-PKCS11_Samples | Python3 based samples to demonstrate how to use python-pkcs11. |\n| Luna-FM_Samples | additional samples codes to demonstrate and test FM capability of Luna HSM. |\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Contributing\n\nIf you are interested in contributing to the \"LunaHSM_Sample_Codes\", start by reading the [Contributing guide](/CONTRIBUTING.md).\n\n\n## License\n\nThis software is provided under a [permissive license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesgroup%2Fluna-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesgroup%2Fluna-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesgroup%2Fluna-samples/lists"}