Help us shape the future of Go! Take the 2026 Go Developer Survey

obfuscate

package
v0.263.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeID

func DecodeID(code string, key [4]uint32) (int64, error)

DecodeID decodes an obfuscated string back into the original numeric ID using a Feistel cipher with the provided key.

func EncodeID

func EncodeID(id int64, key [4]uint32) (string, error)

EncodeID encodes a numeric ID into an obfuscated string using a Feistel cipher with the provided key.

func WasID

func WasID(code string) bool

WasID returns true if the provided code is a valid obfuscated ID (6 or 7 characters from the alphabet).

Types

This section is empty.

Jump to

Keyboard shortcuts

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