Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SuperGenPass for Ruby.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 README.md
Octocat-spinner-32 sgpass.gemspec
README.md

SuperGenPass for Ruby

Command line usage

Install it:

$ gem install sgpass

To generate a password for a site, use:

$ sgpass facebook.com
Password: ******
h8GCua3DxC

To copy it to clipboard:

$ sgpass facebook.com -c
Password: ******
Done. Your password has been copied to the clipboard.

Ruby usage

Or from your Ruby app, you may:

require 'sgpass'
str = SGPass.generate('hunter2', 'http://www.facebook.com')  #=> "vXzettvkI2"

More usage notes

You may even pass full URL's and sgpass will figure it out:

$ sgpass http://www.facebook.com/profile.php
Password: ******
h8GCua3DxC

If you don't want to to be asked for your password, pass it straight from the command line:

$ sgpass facebook.com MyPassword
h8GCua3DxC

Acknowledgements

Gem by Rico Sta. Cruz, based on the original supergenpass.com JavaScript version.

Something went wrong with that request. Please try again.