{"id":21675112,"url":"https://github.com/alokmenghrajani/ncipher_rust","last_synced_at":"2025-04-12T04:33:01.667Z","repository":{"id":144929405,"uuid":"353126583","full_name":"alokmenghrajani/ncipher_rust","owner":"alokmenghrajani","description":"Running Rust code on nCipher HSMs (using CodeSafe).","archived":false,"fork":false,"pushed_at":"2021-04-03T06:09:58.000Z","size":426,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-26T00:03:05.482Z","etag":null,"topics":["hardware-security-module","hsm","ncipher","rust"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokmenghrajani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-03-30T20:01:55.000Z","updated_at":"2024-10-23T23:33:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"920879dd-dae8-47fc-a6b1-e4ade8e25a55","html_url":"https://github.com/alokmenghrajani/ncipher_rust","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/alokmenghrajani%2Fncipher_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fncipher_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fncipher_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fncipher_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokmenghrajani","download_url":"https://codeload.github.com/alokmenghrajani/ncipher_rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248517193,"owners_count":21117411,"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":["hardware-security-module","hsm","ncipher","rust"],"created_at":"2024-11-25T13:51:05.509Z","updated_at":"2025-04-12T04:33:01.656Z","avatar_url":"https://github.com/alokmenghrajani.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust on nCipher 🦀🛡️\n\nRunning Rust code on nCipher HSMs (using CodeSafe).\n\n# Context\n\nWe tend to write CodeSafe code in C (e.g. see [Subzero](https://github.com/square/subzero),\nSquare's HSM-based Bitcoin Cold Storage wallet). This repo is a prototype\nshowing how the same result could be achieved using Rust.\n\nThe main appeal for using Rust is memory safety/better guarantees compared\nto C. Rust also enables leveraging a rich ecosystem of packages and libraries.\n\n# Try it out\n\nCompile the Rust code with:\n```\ninstall Docker\ngit clone https://github.com/alokmenghrajani/ncipher_rust.git\nget CodeSafe-linux64-dev-12.50.2.iso from your vendor and drop it in the codesafe/ folder\n./codesafe/build.sh\n./rust/build.sh\ndocker run --rm -it -v $PWD/demo:/demo ncipher-rust /demo/compile.sh\n```\n\nRun on the device with the nCipher HSM:\n```\nscp -r demo \u003chost\u003e:~/\nssh \u003chost\u003e\n$ cd ./demo\n$ ./run.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokmenghrajani%2Fncipher_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokmenghrajani%2Fncipher_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokmenghrajani%2Fncipher_rust/lists"}