Versions in this module Expand all Collapse all v0 v0.0.4 Sep 5, 2024 v0.0.3 Sep 5, 2024 v0.0.2 Sep 5, 2024 v0.0.1 Sep 4, 2024 Changes in this version + func Enable(client authenticateconnect.BaseClient) typ.TypeConfig + type Argon2id struct + KeyLen uint32 + Memory uint32 + SaltLen uint32 + Threads uint8 + Time uint32 + func (x *Argon2id) CheckPassword(pwd string, data *structpb.Struct) bool + func (x *Argon2id) GenerateHash(pwd string) (*structpb.Struct, error) + func (x *Argon2id) Verify() error + type AuthenticateData struct + Argon2id *Argon2id + Bcrypt *Bcrypt + Plain *Plain + Scrypt *Scrypt + Type string + func ParseData(val *authenticate.Authenticate) (*AuthenticateData, error) + func (a *AuthenticateData) Password() Password + type Bcrypt struct + Cost int + func (x *Bcrypt) CheckPassword(pwd string, data *structpb.Struct) bool + func (x *Bcrypt) GenerateHash(pwd string) (*structpb.Struct, error) + func (x *Bcrypt) Verify() error + type Password interface + CheckPassword func(pwd string, data *structpb.Struct) bool + GenerateHash func(pwd string) (*structpb.Struct, error) + Verify func() error + type Plain struct + func (*Plain) CheckPassword(pwd string, data *structpb.Struct) bool + func (*Plain) GenerateHash(pwd string) (*structpb.Struct, error) + func (*Plain) Verify() error + type Scrypt struct + KeyLen int + N int + P int + R int + SaltLen uint32 + func (x *Scrypt) CheckPassword(pwd string, data *structpb.Struct) bool + func (x *Scrypt) GenerateHash(pwd string) (*structpb.Struct, error) + func (x *Scrypt) Verify() error