WindowsDpapiKeyStore

public sealed class WindowsDpapiKeyStore : IAiKeyStore
Windows implementation of IAiKeyStore. 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

#
public void DeleteKey(AiProvider provider)
provider (AiProvider)
DeleteKey

SetKey

#
public void SetKey(AiProvider provider, string apiKey)
provider (AiProvider)
apiKey (string)
SetKey

TryGetKey

#
public string TryGetKey(AiProvider provider)
provider (AiProvider)
TryGetKey