Movatterモバイル変換


[0]ホーム

URL:


userpassword

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:13Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCompare

func Compare(hashedstring, passwordstring) (bool,error)

Compare checks the equality of passwords from a hashed pbkdf2 string. Thisuses pbkdf2 to ensure FIPS 140-2 compliance. See:https://csrc.nist.gov/csrc/media/templates/cryptographic-module-validation-program/documents/security-policies/140sp2261.pdf

funcHash

func Hash(passwordstring) (string,error)

Hash generates a hash using pbkdf2.See the Compare() comment for rationale.

funcValidate

func Validate(passwordstring)error

Validate checks that the plain text password meets the minimum password requirements.It returns properly formatted errors for detailed form validation on the client.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp