{"id":28237184,"url":"https://github.com/just-do-halee/vep","last_synced_at":"2025-06-10T15:30:51.162Z","repository":{"id":57671541,"uuid":"398846620","full_name":"just-do-halee/vep","owner":"just-do-halee","description":"Variable-length Expansion Pass function. ( i.e. short password to long hashed password )","archived":false,"fork":false,"pushed_at":"2021-09-07T03:16:45.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T00:17:51.194Z","etag":null,"topics":["algorithms","cryptography","expansion","hash","no-std","password"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/just-do-halee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-22T16:28:12.000Z","updated_at":"2022-06-01T16:09:53.000Z","dependencies_parsed_at":"2022-08-30T12:51:24.400Z","dependency_job_id":null,"html_url":"https://github.com/just-do-halee/vep","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fvep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fvep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fvep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fvep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/just-do-halee","download_url":"https://codeload.github.com/just-do-halee/vep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-do-halee%2Fvep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259101094,"owners_count":22805202,"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":["algorithms","cryptography","expansion","hash","no-std","password"],"created_at":"2025-05-19T00:17:44.342Z","updated_at":"2025-06-10T15:30:51.125Z","avatar_url":"https://github.com/just-do-halee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **`vep`**\n\nVariable-length Expansion Pass function. ( i.e. short password to long hashed password )\n\n\n[![CI][ci-badge]][ci-url]\n[![Crates.io][crates-badge]][crates-url]\n[![Licensed][license-badge]][license-url]\n[![Twitter][twitter-badge]][twitter-url]\n\n[ci-badge]: https://github.com/just-do-halee/vep/actions/workflows/ci.yml/badge.svg\n[crates-badge]: https://img.shields.io/crates/v/vep.svg?labelColor=383636\n[license-badge]: https://img.shields.io/crates/l/vep?labelColor=383636\n[twitter-badge]: https://img.shields.io/twitter/follow/do_halee?style=flat\u0026logo=twitter\u0026color=4a4646\u0026labelColor=333131\u0026label=just-do-halee\n\n[ci-url]: https://github.com/just-do-halee/vep/actions\n[twitter-url]: https://twitter.com/do_halee\n[crates-url]: https://crates.io/crates/vep\n[license-url]: https://github.com/just-do-halee/vep\n| [Docs](https://docs.rs/vep) | [Latest Note](https://github.com/just-do-halee/vep/blob/main/CHANGELOG.md) |\n\n```toml\n[dependencies]\nvep = \"2.1.0\"\n```\n\nor\n\n```toml\n[dependencies]\nvep = { version = \"2.1.0\", default-features = false } # no-std\n```\n\n---\n\n## How to\n\n```rust\nuse vep::Vep;\nuse sha2::{Sha256, Digest}; // can be any hasher(dyn Digest from `digest` crate)\n\nlet src = b\"hello vep!\"; // \u003c- 10 bytes\nlet expanded = Vep(Sha256::new()).expand(src); // -\u003e 10 * 32 bytes == `320 bytes`\n\nassert_eq!(expanded.len(), Vep::\u003cSha256\u003e::output_size_calc(src));\n```\n\n## Fixed size available\n```rust\nlet src = b\"hello vep!\"; // \u003c- 10 bytes\nlet result = Vep(Sha256::new()).expand_and_then_reduce(src); // -\u003e 320 bytes -\u003e `32 bytes` (reduced)\n\nassert_eq!(result.len(), Vep::\u003cSha256\u003e::reduced_size_calc());\n```\n---\n## * Algorithm\n---\n![Vep Image](https://i.ibb.co/WgTkyXF/vep2.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-do-halee%2Fvep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust-do-halee%2Fvep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-do-halee%2Fvep/lists"}