Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

just-do-halee/vep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vep

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

CI Crates.io Licensed Twitter

| Docs | Latest Note |

[dependencies]
vep = "2.1.0"

or

[dependencies]
vep = { version = "2.1.0", default-features = false } # no-std

How to

use vep::Vep;
use sha2::{Sha256, Digest}; // can be any hasher(dyn Digest from `digest` crate)

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

assert_eq!(expanded.len(), Vep::<Sha256>::output_size_calc(src));

Fixed size available

let src = b"hello vep!"; // <- 10 bytes
let result = Vep(Sha256::new()).expand_and_then_reduce(src); // -> 320 bytes -> `32 bytes` (reduced)

assert_eq!(result.len(), Vep::<Sha256>::reduced_size_calc());

* Algorithm


Vep Image

About

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

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages