Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F11194423
keys.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
404 B
Subscribers
None
keys.go
View Options
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
Details
Attached
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
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment