Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCrypt ¶
type BCrypt int
BCrypt is the default password encryption scheme for Steranko. The integer value represents the complexity cost of the algorithm.
func (BCrypt) CompareHashedPassword ¶
CompareHashedPassword checks that a hashedValue value matches the plaintext password.
func (BCrypt) HashPassword ¶
HashPassword returns a hashed value for the password.
type Plaintext ¶
type Plaintext struct{}
Plaintext is an awful password encryption scheme that should NEVER be used outside of initial development.
func (Plaintext) CompareHashedPassword ¶
func (p Plaintext) CompareHashedPassword(ciphertext string, plaintext string) (OK bool, rehash bool)
CompareHashedPassword checks that a ciphertext value matches the plaintext password.
func (Plaintext) HashPassword ¶
HashPassword returns a hashed value for the password.
Click to show internal directories.
Click to hide internal directories.