Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSalt ¶
WithSalt configure the salt value for Encoder, default automatically generate random strings
func WithSaltLen ¶
WithSaltLen configure the salt length for Encoder, default value is 16
Types ¶
type Encoder ¶
type Encoder struct { SaltLen int // bytes to use as salt (octets) N int // CPU/memory cost parameter (logN) R int // block size parameter (octets) P int // parallelisation parameter (positive int) // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.