Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SuperGenPass for Ruby.
Ruby
branch: master
Failed to load latest commit information.
bin Allow specifying password length.
lib Allow specifying password length.
.gitignore Initial
HISTORY.md Release v0.1.1
README.md Update readme.
sgpass.gemspec Release v0.1.0

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.