MCPcopy
hub / github.com/writefreely/writefreely / initKeyPaths

Function initKeyPaths

keys.go:41–46  ·  view source on GitHub ↗
(app *App)

Source from the content-addressed store, hash-verified

39}
40
41func initKeyPaths(app *App) {
42 emailKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, emailKeyPath)
43 cookieAuthKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, cookieAuthKeyPath)
44 cookieKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, cookieKeyPath)
45 csrfKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, csrfKeyPath)
46}
47
48// generateKey generates a key at the given path used for the encryption of
49// certain user data. Because user data becomes unrecoverable without these

Callers 2

InitializeFunction · 0.85
GenerateKeyFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected