Project

secrit

0.0
No release in over a year
This gem provides a method to decrypt and retrieve secrets from Password-Store ('pass' cli tool; see: https://www.passwordstore.org/).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
~> 1.11

Runtime

~> 2.0.22
 Project Readme

Secrit

Introduction

Secrit is a simple Ruby gem designed to interact with the ‘pass’ Password-Store generated keys.

Installation

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

Usage

Retrieve a Password

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')

Requirements

  • Ruby 3
  • gpgme

Development

To contribute or report issues, please visit the GitHub repository.

License

MIT