Documentation ¶
Index ¶
- func CompareChecksums(first []byte, second []byte) bool
- func ComputeMd5Checksum(data []byte) []byte
- func ComputeSha256Checksum(data []byte) []byte
- func GetSha256HashString(data []byte) string
- func GetSha256HashStringFromStream(stream io.Reader) string
- func ValidateMd5Checksum(data []byte, sum []byte) bool
- func ValidateSha256Checksum(data []byte, sum []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareChecksums ¶
Compare two check sums. Return true if they are they same
func ComputeMd5Checksum ¶
This returns the data's MD5 checksum.
WARNING: Do NOT Use MD5 in security contexts (defending against intentional manipulations of data from untrusted sources); use only for checking data integrity against machine errors.
func ComputeSha256Checksum ¶
This returns the data's Sha256 checksum
func GetSha256HashString ¶
This returns the data's Sha256 checksum as a string representation
func GetSha256HashStringFromStream ¶
Return a hash from a stream reader
func ValidateMd5Checksum ¶
This returns true if the data matches the provided checksum.
func ValidateSha256Checksum ¶
This returns true if the data matches the provided checksum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.