Skip to content

hard-simp/secrit.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gem for using Password-Store (or 'pass') managed secrets in your Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages