pub fn generate_with_url<S: Into<String>>(password: S, url: S) -> String
Expand description

Generate a hashed password from URL with default options.

Arguments

  • password - Master password to generate hashed password from
  • url - URL to generate password for, will be stripped to domain

Examples

use rustgenpass::generate_with_url;
let generated_password = generate_with_url("masterpassword", "https://www.example.com/foo/bar.html");
assert_eq!("jHMOHn7bRs", generated_password);