token

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Token added in v0.0.2

type Token struct {
	EncryptionKey string
}

Token es una estructura que contiene una clave para encriptar

func (*Token) Decrypt added in v0.0.2

func (t *Token) Decrypt(content string) (out, err string)

Decrypt

func (*Token) DecryptOLD added in v0.0.2

func (t *Token) DecryptOLD(content string) (out, err string)

func (*Token) Encrypt added in v0.0.2

func (t *Token) Encrypt(content string) (out, err string)

Encrypt

func (*Token) EncryptOLD added in v0.0.2

func (t *Token) EncryptOLD(content string) (out string)

Encrypt cifra el contenido y genera una suma de verificación simple.

type TwoKeys added in v0.0.2

type TwoKeys struct {
	// contains filtered or unexported fields
}

func (*TwoKeys) EncryptionKey added in v0.0.2

func (k *TwoKeys) EncryptionKey() map[string]string

retorna "main.encryption_key":"1fgd3..." en ejecución impar cambia la llave

Jump to

Keyboard shortcuts

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