Skip to content

TMA-2/PSSecretStore

 
 

Repository files navigation

PSSecretStore

A cross-platform PowerShell wrapper around SecretStore

Installation

Install-Module PSSecretStore

Examples

Generate a new key file.

$Tempfile = [IO.Path]::GetTempFileName()

Export-SSKey -KeyPath $tempFile

Store and retrieve a secret by password

$Store = [IO.Path]::GetTempFileName()

Set-SSSecret -Name "Secret" -Value "This is a secret" -Password "Password" -StorePath $Store

Get-SSSecret -Name 'Secret' -StorePath $Store -Password "Password"

Store and retrieve a secret by key file

$Store = [IO.Path]::GetTempFileName()
$KeyFile = [IO.Path]::GetTempFileName()

Export-SSKey -KeyPath $KeyFile

Set-SSSecret -Name "Secret" -Value "This is a secret" -KeyPath $KeyFile -StorePath $Store

Get-SSSecret -Name 'Secret' -StorePath $Store -KeyPath $KeyFile

About

PowerShell wrapper around SecretStore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 57.6%
  • C# 42.4%