Skip to content
Snippets Groups Projects
Commit e4bd47a3 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Do not print private keys to logs. It has no debugging value and it...

Do not print private keys to logs. It has no debugging value and it compromises security when users share their logs. We need the public keys anwyay to compare across logs.
parent a75561fd
Branches
Tags
2 merge requests!510Release,!282Auth Store Fixes
...@@ -104,10 +104,11 @@ func (r *Ratchet) AddPartner(partnerID *id.ID, ...@@ -104,10 +104,11 @@ func (r *Ratchet) AddPartner(partnerID *id.ID,
myID := r.myID myID := r.myID
jww.INFO.Printf("Adding Partner %s:\n\tMy Private Key: %s"+ myPubKey := diffieHellman.GeneratePublicKey(myPrivKey, r.grp)
jww.INFO.Printf("Adding Partner %s:\n\tMy Public Key: %s"+
"\n\tPartner Public Key: %s to %s", "\n\tPartner Public Key: %s to %s",
partnerID, partnerID,
myPrivKey.TextVerbose(16, 0), myPubKey.TextVerbose(16, 0),
partnerPubKey.TextVerbose(16, 0), myID) partnerPubKey.TextVerbose(16, 0), myID)
mid := *partnerID mid := *partnerID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment