Secwords

CI Crates.io Licensed Twitter

secure and safe password (temporary) container.

| Docs | Latest Note |

toml [dependencies] secwords = "1.0.0"

or

toml [dependencies] secwords = { version = "1.0.0", default-features = false } # no-std


How to

```rust use secwords::Password; use sha2::Sha256;

let plain = String::from("pa5$wOrs"); // <- example

let pass1 = Password::::new(plain).unwrap(); // min length = 6 let pass2: Password = "pa5$wOrs".parse().unwrap();

assert_eq!(pass1, pass2);

asserteq!(pass1, "pa5$wOrs"); asserteq!(pass1, String::from("pa5$wOrs")); `` there are more examples in thelib.rs`