vep

Variable-length Expansion Pass function. ( i.e. short password to long hashed password )

(no dependencies, 22 lines pure safe codes, also supported no-std)

Crates.io Licensed Twitter

| Docs | Latest Note |

toml [dependencies] vep = "0.1.0"

or

toml [dependencies] vep = { version = "0.1.0", features = ["std"] }

How to

```rust use sha2::Sha256; // can be any hasher

impl vep::Digester for Sha256 { fn digest(&mut self, bytes: &[u8]) -> Vec { self.update(bytes); self.finalizereset().tovec() } }

let src = b"hello vep!"; // <- 10 bytes let expanded = Vep(Sha256::new()).expand(src); // -> 10 * 32 bytes == 320 bytes

```

## * Algorithm

Vep Image