cipher

package module
v0.0.0-...-dac1f72 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrpt

func Decrpt(key, cipherText string) (plainText string, err error)

func Encrypt

func Encrypt(key, text string) (cipherText string, err error)

func Hash

func Hash(key string, Type HashAlgorithm) (hash string)

Types

type HashAlgorithm

type HashAlgorithm uint8
const (
	HashSha1 HashAlgorithm = iota
	HashSha256
	HashSha384
	HashSha512
)

Jump to

Keyboard shortcuts

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