Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
d17fcc17
Commit
d17fcc17
authored
Sep 19, 2014
by
Juan Batiz-Benet
Committed by
Brian Tiger Chow
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix security comment #92
parent
aa296039
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cmd/ipfs/init.go
cmd/ipfs/init.go
+2
-1
config/config.go
config/config.go
+2
-1
No files found.
cmd/ipfs/init.go
View file @
d17fcc17
...
...
@@ -83,7 +83,8 @@ func initCmd(c *commander.Command, inp []string) error {
return
err
}
// pretend to encrypt key, then store it unencrypted
// currently storing key unencrypted. in the future we need to encrypt it.
// TODO(security)
skbytes
,
err
:=
sk
.
Bytes
()
if
err
!=
nil
{
return
err
...
...
config/config.go
View file @
d17fcc17
...
...
@@ -52,7 +52,8 @@ func (i *Identity) DecodePrivateKey(passphrase string) (crypto.PrivateKey, error
return
nil
,
err
}
//pretend to actually decrypt private key
// currently storing key unencrypted. in the future we need to encrypt it.
// TODO(security)
return
x509
.
ParsePKCS1PrivateKey
(
pkb
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment