Package be.imgn.gaia.core.hash


@NullMarked package be.imgn.gaia.core.hash
Mixing of bits, for code that needs numbers to look unrelated to the ones they come from: Mixers scrambles a number, and Feistel scrambles the numbers of a range among themselves, in a way that can be undone. Neither keeps a secret: they are fast, not cryptographic.
  • Classes
    Class
    Description
    A Feistel network: a way to scramble the numbers of a given number of bits among themselves, that can be undone.
    Functions that mix the bits of a number, so that numbers that are close, such as the ones of a counter, give numbers that look unrelated.