Sha256: c5b3b3a2b49cbaea8f9b0c14cfab16681e8af349a5f9603e28d254cdd49c2845

Contents?: true

Size: 175 Bytes

Versions: 10

Compression:

Stored size: 175 Bytes

Contents

module Authenticate
  #
  # A secure token, consisting of a big random number.
  #
  class Token
    def self.new
      SecureRandom.hex(20).encode('UTF-8')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/authenticate/token.rb
authenticate-0.7.2 lib/authenticate/token.rb
authenticate-0.7.1 lib/authenticate/token.rb
authenticate-0.7.0 lib/authenticate/token.rb
authenticate-0.6.1 lib/authenticate/token.rb
authenticate-0.6.0 lib/authenticate/token.rb
authenticate-0.5.0 lib/authenticate/token.rb
authenticate-0.4.0 lib/authenticate/token.rb
authenticate-0.3.3 lib/authenticate/token.rb
authenticate-0.3.2 lib/authenticate/token.rb