crc32

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package crc32 detects collisions in CRC32 hash algorithm.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collision

func Collision(msg1, msg2 []byte) bool

Collision returns true if msg1 and msg2 are different but produce the same CRC32 checksum.

Example
if Collision([]byte("gnu"), []byte("codding")) {
	fmt.Println("CRC32 collision!")
}
Output:

CRC32 collision!

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL