I'm learning about authenticating users in rails and the concept of tokens and digests keep reappearing. I think I understand the general idea of what their purposes are in general, but I don't understand the difference between the two.
A cryptographic hash function is a procedure that takes data and return a fixed bit string: the hash value, also known as digest. Hash functions are also called one-way functions, it is easy to compute a digest from a message, but it is infeasible to generate a message from a digest.
Read more about digest here: http://apidock.com/ruby/Digest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With