Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

userpassword

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:12Imported 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.

funcValidateadded inv0.6.1

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