February 2018
Intermediate to advanced
340 pages
9h 43m
English
The crypto package contains implementations of well-known hash functions. The MD5 hash function is located in the crypto/md5 package. Each hash function in the crypto package implements the Hash interface. Note that Hash contains the Write method. With the Write method, it can be utilized as a Writer. This can be seen in the FileMD5 function. The Sum method of Hash accepts the argument of byte slice, where the resulting hash should be placed.
On the other hand, md5.Sum, the package function, can be used to produce the hash directly. In this case, the argument of the Sum function is the one from the hash values ...
Read now
Unlock full access