Page MenuHomeMusing Studio

keys.go
No OneTemporary

package writefreely
import (
"io/ioutil"
)
type keychain struct {
cookieAuthKey, cookieKey []byte
}
func initKeys(app *app) error {
var err error
app.keys = &keychain{}
app.keys.cookieAuthKey, err = ioutil.ReadFile("keys/cookies_auth.aes256")
if err != nil {
return err
}
app.keys.cookieKey, err = ioutil.ReadFile("keys/cookies_enc.aes256")
if err != nil {
return err
}
return nil
}

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 31, 2:31 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3383131

Event Timeline