{"id":16831635,"url":"https://github.com/alisianoi/lyra2-compare","last_synced_at":"2025-03-18T02:19:56.991Z","repository":{"id":44866399,"uuid":"100746117","full_name":"alisianoi/lyra2-compare","owner":"alisianoi","description":"Compare original Lyra2 in C with its Java Lyra2 port","archived":false,"fork":false,"pushed_at":"2022-01-21T19:20:24.000Z","size":4507,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T09:41:37.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/alisianoi.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}},"created_at":"2017-08-18T20:02:00.000Z","updated_at":"2021-03-29T05:18:40.000Z","dependencies_parsed_at":"2022-09-10T01:50:44.206Z","dependency_job_id":null,"html_url":"https://github.com/alisianoi/lyra2-compare","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/alisianoi%2Flyra2-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisianoi%2Flyra2-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisianoi%2Flyra2-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisianoi%2Flyra2-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alisianoi","download_url":"https://codeload.github.com/alisianoi/lyra2-compare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141479,"owners_count":20404837,"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-10-13T11:44:43.529Z","updated_at":"2025-03-18T02:19:56.969Z","avatar_url":"https://github.com/alisianoi.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Comparison of [Lyra2][1] and [lyra2-java][2]\n\nThis repository provides a performance comparison between the original C implementation of Lyra2 and its Java port. Lyra2 is a memory-hard password hashing scheme which allows its user to configure both memory and processing time required to compute the hash. The original repository for Lyra2 can be [found here][3].\n\nThe gist of the comparison: the Java version is slower and requires more memory. This happens because the Java version has to perform extra steps to produce exactly the same results as the original C implementation. These include explicit endianness conversion and explicit modulo/remainder computations for unsigned 64 bits integers. Without these extra steps different hashes are produced for the same input parameters but significant speed-up is achieved.\n\n ![alt text](https://raw.githubusercontent.com/all3fox/lyra2-compare/master/src/figures/mcost_256.png )\n\n  ![alt text](https://raw.githubusercontent.com/all3fox/lyra2-compare/master/src/figures/tcost_256.png )\n\n[1]: https://github.com/all3fox/Lyra\n[2]: https://github.com/all3fox/lyra2-java/\n[3]: https://github.com/leocalm/Lyra\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisianoi%2Flyra2-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falisianoi%2Flyra2-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisianoi%2Flyra2-compare/lists"}