crypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(in string, key Key) string

func Encrypt

func Encrypt(in string, key Key, noiseMin int64, noiseMax int64) string

Types

type Key

type Key struct {
	Replacements   Replacements
	PotentialNoise []rune
}

func GenKey

func GenKey(reservedRunes []rune, replacementsCount int) Key

type Replacements

type Replacements map[rune][]rune

Jump to

Keyboard shortcuts

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