mcf

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Divider = '$'

Variables

View Source
var (
	ErrorInvalidDecodeInput = errors.New("gramework/grypto: invalid mcf input")
)

Functions

func Decode

func Decode(mcf []byte, expectedPWType []byte) (providerName []byte, params string, salt []byte, key []byte, err error)

Decode given MCF if it contains information about expected pw type

func Encode

func Encode(providerName []byte, params string, salt []byte, key []byte) (res []byte)

Encode encodes given providerName, params, salt and key into Modular Crypt Format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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