Function pswrd::pswrd
[−]
[src]
pub fn pswrd(
scope: &str,
identity: &str,
master_password: &str,
password_index: u32
) -> String
Generates derived password for given scope and identity.
Arguments
scope
- Slice with scope.identity
- Slice with identity.master_password
- Slice with scope.password_index
- Password index.
Example
use pswrd::pswrd; let password = pswrd("fbi.gov", "root", "Pa$$W0rd", 0); assert_eq!(password, "#WmqQw6$yr%2Q8BV")