crypto

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptContent added in v0.0.3

func DecryptContent(passphrase, encryptedContent string) (string, error)

func EncryptContent added in v0.0.3

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

Types

type Crypto

type Crypto interface {
	EncryptContent(string, string) (string, error)
	DecryptContent(string, string) (string, error)
}

type Encryptor

type Encryptor struct{}

func (*Encryptor) DecryptContent

func (*Encryptor) DecryptContent(passphrase, encryptedContent string) (string, error)

func (*Encryptor) EncryptContent

func (*Encryptor) EncryptContent(passphrase, encryptedContent string) (string, error)

Jump to

Keyboard shortcuts

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