Versions in this module Expand all Collapse all v0 v0.1.5 Oct 22, 2023 v0.1.4 Oct 18, 2023 Changes in this version + const BCRYPT_DEFAULT_COST + func Check_credential(db *gorm.DB, auth Auth) bool + func Create_read_pepper() string + func Get_input(prompt string) string + func Hash_SaltPepper_Password(password string, salt string, pepper string) []byte + func Log_if_fatal(e error) + func Pretty_print(obj any) + func Str_random(n int) string + type Auth struct + Password string + Username string + func Get_auth_from_term() Auth + type Credential struct + Hash string + Salt string + Username string + func Make_credential(username string, password string, pepper string) Credential + type CredentialSQL struct + Hash string + Salt string + Username string + func Make_credential_sql(username string, password string, pepper string) CredentialSQL + func Upsert_auth_as_credential_to_db(db *gorm.DB, auth Auth) CredentialSQL