fix security comment #92
Juan Batiz-Benet committed
Sep 19, 2014 at 18:19 UTC
d17fcc1780b5a556d7096852cb7341566e96ff6e
2 files changed
+4
-2
cmd/ipfs/init.go
+2
-1
@@ -83,7 +83,8 @@ func initCmd(c *commander.Command, inp []string) error {
83
return err
84
}
85
86
- // pretend to encrypt key, then store it unencrypted
86
+ // currently storing key unencrypted. in the future we need to encrypt it.
87
+ // TODO(security)
88
skbytes, err := sk.Bytes()
89
if err != nil {
90
return err
config/config.go
+2
-1
@@ -52,7 +52,8 @@ func (i *Identity) DecodePrivateKey(passphrase string) (crypto.PrivateKey, error
52
return nil, err
53
}
54
55
- //pretend to actually decrypt private key
55
+ // currently storing key unencrypted. in the future we need to encrypt it.
56
+ // TODO(security)
57
return x509.ParsePKCS1PrivateKey(pkb)
58
}
59