#credentials #windows #winapi #management #api #function #generic

wincredentials

A wrapper around the Win32 API credential management functions

4 releases

0.2.0 Oct 6, 2021
0.1.2 Oct 5, 2021
0.1.1 Oct 5, 2021
0.1.0 Oct 5, 2021

#706 in Authentication

MIT license

11KB
180 lines

Crates.io docs.rs

wincredentials-rs

A wrapper around the Win32 API credential management functions. Currently only supports generic credentials.

Example

use wincredentials::*;

fn main() {
  let _ = write_credential("test_target", credential::Credential{
    secret: "test".to_owned(),
  });
  
  let cred = read_credential("test_target");
  println!(cred.unwrap().secret);
  
  let _ = delete_credential("test_target");
}

Dependencies

~123MB
~2M SLoC