PasswordCheatSheet

Password Cheat Sheet is useful for website user and password list storage and use. Generates HTML data for passwords from Hash data. This Gem does not have a security feature to protect passwords, so it is designed to be used only for yourself on your local PC.

The generated HTML will access the following third-party libraries.

  • bootstrap.min.css
  • bootstrap-icons.css
  • stimulus.js

Installation

Add this line to your application's Gemfile:

gem 'password_cheatsheet'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install password_cheatsheet

Usage

    require 'password_cheat_sheet'

    password_data = "      -\n        url: https://example.com \n        user: example_user  \n        pass: example_pass\n        desc: this is example site\n      -\n        url: https://test.com\n        user: test_user\n        pass: test_pass\n        desc: this is test site\n    EOS\n\n    yml = YAML.load(password_data) \n    html = PasswordCheatSheet::to_html(yml)\n    File.write('out.html', html)\n"

Output HTML OutputHTMLImage

License

The gem is available as open source under the terms of the MIT License.