https://github.com/thalesgroup/luna-samples
A treasure chest providing first-class samples of source codes to use or discover the many features of a Luna HSM.
https://github.com/thalesgroup/luna-samples
cryptography-tools hsm luna thales
Last synced: 8 months ago
JSON representation
A treasure chest providing first-class samples of source codes to use or discover the many features of a Luna HSM.
- Host: GitHub
- URL: https://github.com/thalesgroup/luna-samples
- Owner: ThalesGroup
- License: other
- Created: 2024-10-17T07:14:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T19:42:36.000Z (over 1 year ago)
- Last Synced: 2025-03-14T20:34:47.824Z (over 1 year ago)
- Topics: cryptography-tools, hsm, luna, thales
- Language: C
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# [ LUNA SAMPLES ]
This 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
- [Luna Network HSM 7](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/luna-sa-network-attached-hsm-pb.pdf).
- [Luna PCIe HSM 7](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/field_document/2024-04/Thales-Luna-PCIe-HSM-pb.pdf).
- [Luna USB HSM (Luna U700)](https://cpl.thalesgroup.com/sites/default/files/content/product_briefs/field_document/2022-09/luna-usb-hsm-pb.pdf).
- [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).
- Luna G5 (EOL - Sep-2025).
- Previous Generation of Luna HSM.
Features -
+ **Universal Compatibility**: The sample codes are compatible with all Luna HSM variants unless explicitly mentioned.
+ **Well-Documented**: Each sample code is thoroughly commented to explain its purpose and functionality.
+ **Tested**: All samples have been tested and should work under the right conditions. Some samples may require specific policies to be enabled.
+ **Well-Formatted**: Samples are well-formatted, easy to read, properly indented, and free from unnecessary comments and other extraneous material.
+ **Topics Covered**: The samples in this repository would cover the following topics:
- PKCS#11.
- Luna JSP.
- Luna RestAPI.
- Luna Functionality Module.
- Python-pkcs11.
+ **Languages Covered**: Samples available for C, Java and Python3.
## Content
| Directory Name | Description |
| --- | --- |
| C_Samples | Pkcs11 samples written in C language. |
| LunaJSP_Samples | Java samples that uses LunaProvider (Luna JSP). |
| RestAPI-Python_Samples | Python3 based Luna REST-API samples for Luna Network HSM. |
| Python-PKCS11_Samples | Python3 based samples to demonstrate how to use python-pkcs11. |
| Luna-FM_Samples | additional samples codes to demonstrate and test FM capability of Luna HSM. |
## Contributing
If you are interested in contributing to the "LunaHSM_Sample_Codes", start by reading the [Contributing guide](/CONTRIBUTING.md).
## License
This software is provided under a [permissive license](LICENSE).