{"modulePath":"github.com/Pholey/bitAPI","version":"v0.0.0-20170122100348-176a01df21df","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lib\n\n## Functions\n\n```go\nfunc Auth(username string, password string) (bool, error)\n```\n\n```go\nfunc HashPass(password string) ([]byte, int, []byte)\n```\nFIXME: If the rand stuff in here fails, it will probably crash the app, there is no error handling here\n\n```go\nfunc ParseBasic(authHeader string) (string, error)\n```\n\n```go\nfunc VerifyHash(password string, salt []byte, iterations int, hash []byte) bool\n```\n\n## Types\n\n```go\ntype User struct {\n\tSalt       []byte `db:\"password_salt\"`\n\tIterations int    `db:\"password_iterations\"`\n\tHash       []byte `db:\"password_hash\"`\n\tPassword   string `json:\"password\"`\n\tUserName   string `db:\"username\" json:\"userName\"`\n\tName       string `db:\"name\"     json:\"name\"`\n\tEmail      string `db:\"email\"    json:\"email\"`\n}\n```\n\n```go\nfunc GetUserAuthInfo(username string) (*User, error)\n```\n\n","path":"github.com/Pholey/bitAPI/resources/lib","name":"lib","synopsis":"","isRedistributable":true}
