keycrypter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecrytKey

func DecrytKey(cipherKey []byte, password string) ([]byte, error)

DecrytKey decrypt the key using password

func EncryptKey

func EncryptKey(key []byte, password string) ([]byte, error)

EncryptKey encrypt the key using password

func LoadKey

func LoadKey(path string, pwdfile string) ([]byte, error)

LoadKey loads key from the encrypted key file

	path - the encrypted key file path
 pwdfile - file stores the encryption file, pass "" to read from cli

func StoreKey

func StoreKey(path string, pwd string, key []byte) error

StoreKey encrypt the key using password, then write encrypted key to file

path - file path to save encrypted key
pwd - password to encrypt the key, pass "" to read from cli
key - the key to be encrypted and stored

Types

This section is empty.

Jump to

Keyboard shortcuts

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