Skip to main content

generic_password

Function generic_password 

Source
pub fn generic_password(options: PasswordOptions) -> Result<Vec<u8>>
Expand description

Get the generic password for the given service and account. If no matching keychain entry exists, fails with error code errSecItemNotFound.

See PasswordOptions and new_generic_password.

use security_framework::passwords::{generic_password, PasswordOptions};
generic_password(PasswordOptions::new_generic_password("service", "account"));