util

package
v0.0.0-...-2bdc998 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const KeySize = 16

KeySize ya

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(text, key string) (string, *errors.Error)

Decrypt .

func Deobfuscate

func Deobfuscate(id int64) hide.Int64

func Encrypt

func Encrypt(text, key string) (string, *errors.Error)

Encrypt .

func GeneratePrime

func GeneratePrime(mode int) (uint64, error)

GeneratePrime number

func HideToByte

func HideToByte(id hide.Int64) []byte

HideToByte converts hide.Int64 into byte slice

func HideToString

func HideToString(id hide.Int64) string

HideToString converts hide.Int64 into string

func Obfuscate

func Obfuscate(id hide.Int64) int64

func RandomCIV

func RandomCIV() ([]byte, *errors.Error)

RandomCIV generates a random common iv

Types

This section is empty.

Jump to

Keyboard shortcuts

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