Documentation ¶ Index ¶ type Scrypt func New() *Scrypt func (s *Scrypt) DeriveKey(password []byte, keyLen int) ([]byte, []byte, error) func (s *Scrypt) DeriveKeyWithSalt(password, salt []byte, keyLen int) ([]byte, error) 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) Source Files ¶ View all Source files scrypt.go Click to show internal directories. Click to hide internal directories.