ruby on rails - What is the difference between a token and a digest? -


i'm learning authenticating users in rails , concept of tokens , digests keep reappearing. think understand general idea of purposes in general, don't understand difference between two.

  • token random string
  • digest hashed string

a cryptographic hash function procedure takes data , return fixed bit string: hash value, known digest. hash functions called one-way functions, easy compute digest message, infeasible generate message digest.

read more digest here: http://apidock.com/ruby/digest


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

ruby on rails - ActiveRecord order not working -

java - ConcurrentModificationException upon committing transaction with Hibernate -