{"id":42957300,"url":"https://github.com/nuxed/crypto","last_synced_at":"2026-01-30T22:27:45.579Z","repository":{"id":57029462,"uuid":"216281738","full_name":"nuxed/crypto","owner":"nuxed","description":"The Nuxed Crypto component provides a high-level cryptography interface that relies on libsodium for all of its underlying cryptography operations.","archived":false,"fork":false,"pushed_at":"2020-11-21T22:50:51.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-07-22T12:54:24.328Z","etag":null,"topics":["argon2","authentication","constant-time","cryptography","cryptography-library","curve25519","digital-signature","ed25519","encryption","hack","hacklang","hhvm","libsodium","misuse-resistant","nuxed","password-hashing","poly1305","x25519","xsalsa20"],"latest_commit_sha":null,"homepage":"","language":"Hack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuxed.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":"SECURITY.md","support":null}},"created_at":"2019-10-19T23:13:26.000Z","updated_at":"2025-03-03T19:04:38.000Z","dependencies_parsed_at":"2022-08-23T17:40:51.140Z","dependency_job_id":null,"html_url":"https://github.com/nuxed/crypto","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/nuxed/crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxed","download_url":"https://codeload.github.com/nuxed/crypto/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fcrypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28921025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["argon2","authentication","constant-time","cryptography","cryptography-library","curve25519","digital-signature","ed25519","encryption","hack","hacklang","hhvm","libsodium","misuse-resistant","nuxed","password-hashing","poly1305","x25519","xsalsa20"],"created_at":"2026-01-30T22:27:44.739Z","updated_at":"2026-01-30T22:27:45.570Z","avatar_url":"https://github.com/nuxed.png","language":"Hack","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/45311177?s=200\u0026v=4\"\u003e\u003c/p\u003e\n\n![Coding standards status](https://github.com/nuxed/crypto/workflows/coding%20standards/badge.svg?branch=develop)\n![Static analysis status](https://github.com/nuxed/crypto/workflows/static%20analysis/badge.svg?branch=develop)\n![Unit tests status](https://github.com/nuxed/crypto/workflows/unit%20tests/badge.svg?branch=develop)\n[![Total Downloads](https://poser.pugx.org/nuxed/crypto/d/total.svg)](https://packagist.org/packages/nuxed/crypto)\n[![Latest Stable Version](https://poser.pugx.org/nuxed/crypto/v/stable.svg)](https://packagist.org/packages/nuxed/crypto)\n[![License](https://poser.pugx.org/nuxed/crypto/license.svg)](https://packagist.org/packages/nuxed/crypto)\n\n# Nuxed Crypto\n\nThe Nuxed Crypto component provides a high-level cryptography interface that relies on libsodium for all of its underlying cryptography operations.\n\ninspired by [`Halite`](https://github.com/paragonie/halite).\n\n### Important\n\nAlthough this library has developed with care, it has not been examined by security experts, there will always be a chance that we overlooked something. Please ask your favourite trusted hackers to hammer it for implementation errors and bugs before even thinking about deploying it in production.\n\n### Installation\n\nThis package can be installed with [Composer](https://getcomposer.org).\n\n```console\n$ composer require nuxed/crypto\n```\n\n### Example\n\n```hack\nuse namespace Nuxed\\{Crypto, Filesystem};\nuse namespace Nuxed\\Crypto\\Symmetric;\n\n\u003c\u003c__EntryPoint\u003e\u003e\nasync function main(): Awaitable\u003cvoid\u003e {\n  // generate a key :\n  $key = Symmetric\\Encryption\\Key::generate();\n  \n  // or load a stored encryption key :\n  $file = new Filesystem\\File('/path/to/encryption.key');\n  $key = $key = Symmetric\\Encryption\\Key::import(\n    new Crypto\\HiddenString(await $file-\u003eread())\n  );\n\n  $message = new Crypto\\HiddenString('Hello, World!');\n  $ciphertext = Symmetric\\Encryption\\encrypt($message, $key);\n  $plaintext = Symmetric\\Encryption\\decrypt($ciphertext, $key);\n\n  print $plaintext-\u003etoString(); // Hello, World!\n}\n```\n\n---\n\n### Security\n\nFor information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).\n\n---\n\n### License\n\nNuxed is open-sourced software licensed under the MIT-licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxed%2Fcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxed%2Fcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxed%2Fcrypto/lists"}