gencrypt

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SonnefesDecrypt

func SonnefesDecrypt(cipher string, key string) (string, error)

func SonnefesEncrypt

func SonnefesEncrypt(plainText, key string) (string, error)

func SymmetricDecrypt

func SymmetricDecrypt(ea Alg, cipherText, key []byte) (plainText []byte, err error)

func SymmetricEncrypt

func SymmetricEncrypt(ea Alg, plainText, key []byte) (cipherText []byte, err error)

Types

type Alg

type Alg string
const (
	/*
		AES key length must be one of 128, 192, 256 bits.
	*/
	ALG_AES_128_CBC Alg = "ALG_AES_128_CBC"
	ALG_AES_128_CTR Alg = "ALG_AES_128_CTR"
	ALG_AES_256_CBC Alg = "ALG_AES_256_CBC"
	ALG_AES_256_CTR Alg = "ALG_AES_256_CTR"
)

Jump to

Keyboard shortcuts

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