scrypt

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scrypt

type Scrypt struct {
	SaltLen int `json:"saltlen,omitempty" toml:"saltlen"`
	N       int `json:"n,omitempty" toml:"n"`
	R       int `json:"r,omitempty" toml:"r"`
	P       int `json:"p,omitempty" toml:"p"`
}

func New

func New() *Scrypt

func (*Scrypt) DeriveKey

func (s *Scrypt) DeriveKey(password []byte, keyLen int) ([]byte, []byte, error)

func (*Scrypt) DeriveKeyWithSalt

func (s *Scrypt) DeriveKeyWithSalt(password, salt []byte, keyLen int) ([]byte, error)

Jump to

Keyboard shortcuts

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