Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPass ¶
CheckPass Finds the (db) record that matches username(u) Compares clear-text password to hashed value found in db
func ChkBadpass ¶
ChkBadpass scans a file (top 1000 most common passwords) looking for a match If a match is found return true, and the password should be allowed.
func StorePass ¶
StorePass Stores Username(u) and Password(p) in the Flatfile database(db)
- Generates the hash value from the password(p)
- Populates credential with Username & Password
- Marshal credential into json
- Appends single record json string to Flatfile(db)
- TODO: Before appending, check if username already exists in db.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.