[tor-commits] [vidalia/master] Provide a hashed password instead of a plain text one

chiiph at torproject.org chiiph at torproject.org
Sat Aug 13 03:11:28 UTC 2011


commit 35efb16c7e51d758334a381ca1312d69d2efe533
Author: Tomas Touceda <chiiph at torproject.org>
Date:   Thu Jul 28 14:17:21 2011 -0300

    Provide a hashed password instead of a plain text one
    
    And remove useless debug print.
---
 src/vidalia/MainWindow.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index 0173c69..5634e63 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -2033,9 +2033,8 @@ MainWindow::updateBrowserEnv() {
   }
 
   if(settings.getAuthenticationMethod() == TorSettings::PasswordAuth) {
-    env << QString("TOR_CONTROL_PASSWD=%1").arg(settings.getControlPassword());
+    env << QString("TOR_CONTROL_PASSWD=%1").arg(TorSettings::hashPassword(settings.getControlPassword()));
     env << QString("TOR_CONTROL_PORT=%1").arg(_autoControlPort);
-    qWarning() << env;
   }
 
   return env;





More information about the tor-commits mailing list