Documentation ¶
Index ¶
- type Argon2idConfig
- type Argon2idHash
- func (a2 *Argon2idHash) Decode(encodedHash string) ([]byte, []byte)
- func (a2 *Argon2idHash) Encode(salt []byte, hash []byte) string
- func (a2 *Argon2idHash) EncodedHash(secret string) (string, error)
- func (a2 *Argon2idHash) Hash(secret string) ([]byte, []byte, error)
- func (a2 *Argon2idHash) Match(secret string, encodedHash string) bool
- type Hash
- type RandSalt
- type Salt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argon2idConfig ¶
type Argon2idHash ¶
type Argon2idHash struct {
// contains filtered or unexported fields
}
func (*Argon2idHash) Decode ¶
func (a2 *Argon2idHash) Decode(encodedHash string) ([]byte, []byte)
func (*Argon2idHash) Encode ¶
func (a2 *Argon2idHash) Encode(salt []byte, hash []byte) string
func (*Argon2idHash) EncodedHash ¶
func (a2 *Argon2idHash) EncodedHash(secret string) (string, error)
func (*Argon2idHash) Match ¶
func (a2 *Argon2idHash) Match(secret string, encodedHash string) bool
type Hash ¶
type Hash interface { EncodedHash(secret string) (string, error) Hash(secret string) ([]byte, []byte, error) Encode(salt []byte, hash []byte) string Decode(encodedHash string) ([]byte, []byte) Match(secret string, encodedHash string) bool }
func NewArgon2idHash ¶
func NewArgon2idHash(config Argon2idConfig, saltF Salt) Hash
type RandSalt ¶
type RandSalt struct{}
Click to show internal directories.
Click to hide internal directories.