simplecrypt

package
v0.0.0-...-51d8ade Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarName = "SCR_PASS"

EnvVarName default password variable name

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(in string, symKey []byte) (string, error)

Decrypt string by symmetrical key

func Encrypt

func Encrypt(in string, symKey []byte) (string, error)

Encrypt string by symmetrical key

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader object, implements noble.SecretStorage

func (*Reader) Clone

func (scr *Reader) Clone() noble.SecretStorage

Clone returns new empty instance of Reader

func (*Reader) Read

func (scr *Reader) Read(s string) (string, error)

Read implementation

func (*Reader) SetKey

func (scr *Reader) SetKey(new string) *Reader

SetKey set key for

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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