crypt

package
v0.0.0-...-d1bd1f9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEYLENGTH  = 32
	SALTLENGTH = 32

	MAGIC = "$ANSIBLE_VAULT"
)

Variables

This section is empty.

Functions

func AnsibleDecrypt

func AnsibleDecrypt(encrypted []byte, password string) ([]byte, error)

func AnsibleEncrypt

func AnsibleEncrypt(plaintext []byte, password string) ([]byte, error)

func GenerateKeys

func GenerateKeys(password, salt []byte) ([]byte, []byte, []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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