Skip to content

Commit 5453997

Browse files
committed
docs: update README for v0.2.0 API
1 parent 4ac261c commit 5453997

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add this to your `Cargo.toml`:
1919

2020
```toml
2121
[dependencies]
22-
windows-dpapi = "0.1.0"
22+
windows-dpapi = "0.2.0"
2323
```
2424

2525
Basic usage:
@@ -29,8 +29,8 @@ use windows_dpapi::{encrypt_data, decrypt_data, Scope};
2929

3030
fn main() -> anyhow::Result<()> {
3131
let secret = b"my secret";
32-
let encrypted = encrypt_data(secret, Scope::User)?;
33-
let decrypted = decrypt_data(&encrypted, Scope::User)?;
32+
let encrypted = encrypt_data(secret, Scope::User, None)?;
33+
let decrypted = decrypt_data(&encrypted, Scope::User, None)?;
3434
assert_eq!(secret, decrypted.as_slice());
3535
Ok(())
3636
}
@@ -72,4 +72,4 @@ This project is licensed under either of the following, at your option:
7272

7373
## Contributing
7474

75-
Contributions are welcome! Please feel free to submit a Pull Request.
75+
Contributions are welcome! Please feel free to submit a Pull Request.

0 commit comments

Comments
 (0)