hash function
哈希函数
散列函数
一个哈希函数
一个hash函数
Recall that we require that our hash functions work on inputs of arbitrary length. Hash functions can be used to determine whether a message has been modified. Hash functions are mainly used to ensure that a file has remained unchanged. The hash function H consists of lots of smaller hash functions “h”. A common use of this kind of hash function is to store passwords. Combinations with other parts of speech
Hash codes are also used to assure the integrity of the investigation.The length of the sequence of hash functions is kept fixed at 32. In general, the hash function Hk is defined as:. The hash function should be capable of returning the hash of input quickly.这是一个160位哈希函数 ,类似于早期的MD5算法。 A 160-bit hash function which resembles the earlier MD5 algorithm. Proof of work and proof of capacity both require the use of hash functions . Proof of work and proof of capacity both require the use of hash functions . 在以上代码示例中,我们已经看到改变哈希函数 中的一小部分会导致产生一种完全不同的输出。 As we established above, changing even a small part of the input for a hash function results in a totally different output. 哈希函数 的应用之一就是作为数据结构实现的一部分,例如哈希表和字典。One use of hash functions is as part of the implementation of data structures such as hash tables and dictionaries. 块头通过哈希函数 运行,也称为“单向”或“陷阱门”功能。 The block header is run through a hash function , also known as a"one-way" or"trap-door" function. . 也许现代哈希函数 ,比如SHA-256,SHA-3和BLAKE2永远不会被攻破。 Maybe modern hash functions like SHA-256, SHA-3, and BLAKE2 will never be broken. 因此,哈希函数 需要一个输入可以是任何数据--(数字,文件等)并输出哈希。 A hash function is therefore something that takes an input(which can be any data- numbers, files, etc) and outputs a hash. . 哈希函数 就是一个确定性行为,这就意味着a的哈希值总是H(a)。Hash functions are deterministic, meaning A's hash will always be H(A). 无论什么时候,只要你用哈希函数 展示同一张猫的照片,你总是会得到同样的结果。 Any time you feed a hash function a particular cat picture, you will always, always get the same number as the result. 哈希函数 有许多用途,对于每种用途,可能需要不同的属性。Hash functions have many uses and for each one, different properties may be desired. 这意味着无论你通过哈希函数 解析特定输入多少次,你都会得到相同的结果。 This means that no matter how many times you parse a particular input through a hash function you will always get the same result. Python也支持adler32以及crc32哈希函数 ,不过它们在zlib模块中。 Python also supports the adler32 and crc32 hash functions , but those are in the zlib module. 但是,如果不注意键的哈希函数 ,则最终你可能在执行put()和get()时十分缓慢。 But, if you don't take care of the hash function of the key, you might end up with very slow put() and get() calls. 哈希函数 是一种数学函数,把数据变成数据的指纹的过程称为哈希。A hash function is a type of mathematical function which turns data into a fingerprint of that data called a hash. . 哈希函数 非常有用,并且几乎出现在所有信息安全应用程序中。Hash functions are extremely useful and appear in almost all information security applications. 它不是随机的--每次你通过哈希函数 输入特定的数据集,你会得到相同的64字符字符串。 It's not random- every time you put in that particular data set through the hash function , you will get the same 64-character string. 我们已经讨论了哈希函数 的三个属性,并且每个属性都有一个应用实例。 We have discussed three properties of hash functions , and one application of each of those. 有很多哈希函数 都可以完成这项工作,比如sha-512,md5等等。 There are many hash functions to do the job such as sha-512, md5 and so on.
Display more examples
Results: 124 ,
Time: 0.0381