cipher

package
v0.0.0-...-d2bc1ab Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, passphrase string) ([]byte, error)

func DecryptString

func DecryptString(data string, passphrase string) (string, error)

func Encrypt

func Encrypt(data []byte, passphrase string) ([]byte, error)

func EncryptString

func EncryptString(data string, passphrase string) (string, error)

Types

type Cipher

type Cipher string
const (
	AESCipher Cipher = "AES"
	RSACipher Cipher = "RSA"
)

Jump to

Keyboard shortcuts

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