argon

package
v0.0.0-...-d77ab08 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pad

func Pad(src string, width int, padding rune) string

func Split

func Split(src string, width int) []string

Types

type Argon

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

func New

func New(phrase string) (*Argon, error)

func (*Argon) Decrypt

func (a *Argon) Decrypt(enc []byte) ([]byte, error)

func (*Argon) DecryptText

func (a *Argon) DecryptText(src string) (string, error)

func (*Argon) Encrypt

func (a *Argon) Encrypt(src []byte) []byte

func (*Argon) EncryptText

func (a *Argon) EncryptText(src string) (string, error)

func (Argon) String

func (a Argon) String() string

type PassPhrase

type PassPhrase string

func (PassPhrase) String

func (p PassPhrase) String() string

Jump to

Keyboard shortcuts

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