MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / loadDatabase

Function loadDatabase

src/internal/authentication/authentication.go:475–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473}
474
475func loadDatabase() (err error) {
476 jsonString, err := os.ReadFile(database)
477 if err != nil {
478 return
479 }
480
481 err = json.Unmarshal([]byte(jsonString), &data)
482 if err != nil {
483 return
484 }
485
486 return
487}
488
489// SHA256 : password + salt = sha256 string
490func SHA256(secret, salt string) string {

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected