luhn

package
v1.26.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

Create a mask from a configuration

func Func added in v1.15.0

func Func(seed int64, seedField string) interface{}

Types

type MaskEngine

type MaskEngine struct {
	Universe []byte
}

MaskEngine is a struct to create incremental int

func NewMask

func NewMask(universe []byte) MaskEngine

NewMask create an Luhn mask

func (MaskEngine) Mask

func (l MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)

Mask return the value with luhn checksum

Jump to

Keyboard shortcuts

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