Build Status Gem Version Dependency Status Code Climate

HasSecureToken

Installation

Add this line to your application's Gemfile:

gem 'has_secure_password'

And then execute:

$ bundle

Or install it yourself as:

$ gem install has_secure_password

Setting your Model

class User
  has_secure_token :token1, :token2
end

user = User.create
user.token1 => "44539a6a59835a4ee9d7b112b48cd76e"
user.token2 => "226dd46af6be78953bde1641622497a8"

Contributing

  1. Fork it ( https://github.com/[my-github-username]/has_secure_password/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request