https://github.com/majkinetor/pass
Pass password manager using Powershell
https://github.com/majkinetor/pass
encryption gpg pass password powershell secrets
Last synced: 8 months ago
JSON representation
Pass password manager using Powershell
- Host: GitHub
- URL: https://github.com/majkinetor/pass
- Owner: majkinetor
- License: gpl-3.0
- Created: 2017-09-16T19:05:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T14:50:19.000Z (about 6 years ago)
- Last Synced: 2025-05-13T12:05:15.840Z (9 months ago)
- Topics: encryption, gpg, pass, password, powershell, secrets
- Language: PowerShell
- Homepage:
- Size: 30.3 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pass
[Pass](https://passwordstore.org) compatible Powershell module. It allows encryption of secrets using GpG in a
directory structure that is convinient to put in a repository. Module works cross-platfrom.
## Prerequisites
- `gpg` on the PATH:
- Windows (using Chocolatey): `cinst gnupg`
- For advanced password generation install [MlkPwgen](https://github.com/mkropat/MlkPwgen) module: `Install-Package MlkPwgen -Force`
## Usage
First `mkdir ~/.password-store`. This is default directory and different one can be used by setting `$Env:PASSWORD_STORE_DIR` variable.
```powershell
import-module pass
# Add secret
'omg so much cheese what am i gonna do' | Add-Secret Business/cheese-whiz-factory
# Generate password and add username and overwrite existing secret
"$(New-PronounceablePassword -Length 20)
Username: admin" | Add-Secret Business/cheese-whiz-factory -Force
# Show only first line of the secret (password) and set 45s to clipboard
Show-Secret Business/cheese-whiz-factory -Clipboard -FirstLine
# Show directory tree
Show-Secret
# Add anything
ps | out-string | Add-Secret ps
Show-Secret ps
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
120 8 1488 1376 397,33 7928 1 ApMsgFwd
132 9 1744 2428 2,88 8016 1 ApntEx
...
```
Both symmetric and keys encryption is supported. `Add-Secret` takes recipients via `.gpg-id` files in the password store or via `$GpgId` array. It can encrypt using public keys or with passphrase instead (via`$Passphrase` argument).
There is also quick and dirty `pass` function that implements the most basic pass syntax:
```
pass insert Business/cheese-whiz-factory
pass generate Email/jasondonenfeld.com 15
pass Email/zx2c4.com
```
## Notes
- For graphical interface see [pass-winmenu](https://github.com/Baggykiin/pass-winmenu). It can be installed with: `cinst pass-winmenu`.