keycrypt

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(value, passphrase string) (*hdkeychain.ExtendedKey, string, error)

Decrypt decrypts a key encrypted with Encrypt

func Encrypt

func Encrypt(key *hdkeychain.ExtendedKey, keyPath, passphrase string) (string, error)

Encrypt encrypts an HD priv key using a user-provided secret into a string We use SCrypt256 for key derivation and AES-CBC-PKCS7 for encryption. The returned string has information about version, derivation path, scrypt and AES parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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