# WindowsDpapiKeyStore class

Namespace: [Grasshopper2.Components.Descriptive](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.components.descriptive.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class WindowsDpapiKeyStore : IAiKeyStore
```

Windows implementation of [IAiKeyStore](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.iaikeystore.md). Encrypts each key with DPAPI (current user scope, so other Windows accounts on the same machine cannot read it) and writes the ciphertext to a per-provider file under %APPDATA%\McNeel\Grasshopper2.

## Methods

- [DeleteKey](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.windowsdpapikeystore/deletekey.md)
- [SetKey](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.windowsdpapikeystore/setkey.md)
- [TryGetKey](https://developer.rhino3d.com/api/gh2/type/grasshopper2.components.descriptive.windowsdpapikeystore/trygetkey.md)
