Secrit is a simple Ruby gem designed to interact with the ‘pass’ Password-Store generated keys.
First, ensure that you have the `~/.password-store/` directory available as the library uses it as the default storage path.
To install the Secrit library, you can simply use pip:
gem install secrit
To retrieve a decrypted content of a password store entry, use the `get` function:
require 'secrit'
# You will be prompted for your master password which will then load the decripted
# contents of ~/.password-store/github/token.gpg
api_key = Secrit.get('github/token')
- Ruby 3
- gpgme
To contribute or report issues, please visit the GitHub repository.
MIT