cipher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashSha1   hashType = 1
	HashSha256 hashType = 2
	HashSha384 hashType = 3
	HashSha512 hashType = 4
)

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 hashType) (hash string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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