[英]What is the difference between a token and a digest?
I'm learning about authenticating users in rails and the concept of tokens and digests keep reappearing. 我正在学习有关在Rails中对用户进行身份验证的方法,令牌和摘要的概念不断出现。 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 在此处阅读有关摘要的更多信息: http : //apidock.com/ruby/Digest
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.