{"id":18889899,"url":"https://github.com/kozlm/lyra2","last_synced_at":"2026-04-29T09:36:27.700Z","repository":{"id":224350995,"uuid":"762876958","full_name":"kozlm/Lyra2","owner":"kozlm","description":"Lyra2 password hashing algorithm implementation in Java","archived":false,"fork":false,"pushed_at":"2024-09-09T11:52:21.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T03:42:16.643Z","etag":null,"topics":["cryptography","java","junit","lyra2","maven","password-hashing","phs"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kozlm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-24T23:45:06.000Z","updated_at":"2024-09-09T12:15:45.000Z","dependencies_parsed_at":"2024-11-08T08:03:03.266Z","dependency_job_id":null,"html_url":"https://github.com/kozlm/Lyra2","commit_stats":null,"previous_names":["kozlm/lyra2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kozlm/Lyra2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kozlm%2FLyra2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kozlm%2FLyra2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kozlm%2FLyra2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kozlm%2FLyra2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kozlm","download_url":"https://codeload.github.com/kozlm/Lyra2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kozlm%2FLyra2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cryptography","java","junit","lyra2","maven","password-hashing","phs"],"created_at":"2024-11-08T07:51:24.403Z","updated_at":"2026-04-29T09:36:27.685Z","avatar_url":"https://github.com/kozlm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lyra2 algorithm implementation in Java\n\nImplementation of the Lyra2 password hashing algorithm on a single thread in Java.\nOne of the goals of this project was to follow OOP good practices,\nwhile not making the code too complicated.\n\nMore information about [Lyra2][2] and the official [Lyra2 documentation][1].\n\n## Features\n\n- **Sponge Algorithms**: Supports both `BlaMka` and `Blake2B` as sponge functions.\n- **Configurable Parameters**: Allows customization of the memory matrix size, number of rounds, block size, and more to tailor the hashing process to your needs.\n- **High Security**\n\n## Usage\n\n1. Clone the repository and go to the project directory:\n  ```bash\n  git clone https://github.com/kozlm/Lyra2.git\n  cd Lyra2\n  ```\n2. Compile the project:\n  ```bash\n  mvn package\n  ```\n3. Use the following syntax to hash your password:\n  ```bash\n  java -jar ./target/Lyra2-1.0-SNAPSHOT.jar [options] [password to hash]\n  ```\n  - For more information about the syntax use:\n    ```bash\n    java -jar ./target/Lyra2-1.0-SNAPSHOT.jar --help\n    ```\n\n### Required Options\n\n- **`-a, --algorithm`**: Sponge algorithm to use.  \n  Possible values: `BlaMka`, `Blake2B`.\n\n- **`-k, --hashlength`**: The length of the hashed password in bytes.\n\n- **`-s, --salt`**: The salt to use during hashing.  \n\n### Optional Parameters\n\n- **`-b, --blocks`**: The number of longs (8 bytes) that make up a block in the memory matrix.  \n  Default: `12`  \n  Range: `[1 - 12]`\n\n- **`-c, --cols`**: The number of columns in the memory matrix.  \n  Default: `256`\n\n- **`-f, --fullrounds`**: The number of rounds performed by the regular sponge function.  \n  Default: `12`  \n  Range: `[1 - 12]`\n\n- **`-h, --halfrounds`**: The number of rounds performed by the reduced sponge function.  \n  Default: `6`  \n  Range: `[1 - 12]`\n\n- **`-r, --rows`**: The number of rows in the memory matrix.  \n  Default: `10`\n\n- **`-t, --timecost`**: The time cost parameter, which adjusts the execution time of the algorithm.  \n  Default: `10`\n\n## Example\n\nHere is an example of how to use the Lyra2 algorithm with specific options:\n\n```bash\njava -jar ./target/Lyra2-1.0-SNAPSHOT.jar -a Blake2B -s ssss -k 1 -f 12 -h 12 -b 12 -c 256 -r 3 -t 100 'password123'\n```\n\n## References\n\nDuring the development of this project, the following Git repositories were used as conceptual references:\n\n- **[Original implementation][4]** used for planning of the project outline\n\n- **[Lyra2 Java Implementation][3]** by Alexander Lisianoi used for testing and debugging\n\n[1]: https://eprint.iacr.org/2015/136\n[2]: https://en.wikipedia.org/wiki/Lyra2\n[3]: https://github.com/alisianoi/lyra2-java\n[4]: https://github.com/leocalm/Lyra\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkozlm%2Flyra2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkozlm%2Flyra2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkozlm%2Flyra2/lists"}