Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamdriscoll/PSSecretStore
PowerShell wrapper around SecretStore
https://github.com/adamdriscoll/PSSecretStore
Last synced: about 2 months ago
JSON representation
PowerShell wrapper around SecretStore
- Host: GitHub
- URL: https://github.com/adamdriscoll/PSSecretStore
- Owner: adamdriscoll
- License: mit
- Created: 2020-01-29T03:46:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T15:02:32.000Z (almost 5 years ago)
- Last Synced: 2024-11-17T16:42:41.243Z (2 months ago)
- Language: PowerShell
- Size: 13.7 KB
- Stars: 33
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - adamdriscoll/PSSecretStore - PowerShell wrapper around SecretStore (PowerShell)
README
# PSSecretStore
A cross-platform PowerShell wrapper around [SecretStore](https://github.com/neosmart/SecureStore)
# 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
```