Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: remoting/host/support_access_verifier.cc

Issue 7048020: Don't use letters in me2mom access code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/protocol/auth_token_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/support_access_verifier.cc
diff --git a/remoting/host/support_access_verifier.cc b/remoting/host/support_access_verifier.cc
index 5d1c019611f48642b775d46956bb12a0ad2696a9..23146addf460cd9890b307aef03149e3f92641a9 100644
--- a/remoting/host/support_access_verifier.cc
+++ b/remoting/host/support_access_verifier.cc
@@ -16,14 +16,11 @@
namespace remoting {
namespace {
-// 5 characters long from 34-letter alphabet gives 4.5M possible
+// 8 characters long from 10-letter alphabet gives 100M possible
// host secrets with uniform distribution, which should be enough
// for short-term passwords.
-const int kHostSecretLength = 5;
-
-// The following set includes 10 digits and Latin alphabet except I
-// and O. I and O are not used to avoid confusion with 1 and 0.
-const char kHostSecretAlphabet[] = "ABCDEFGHJKLMNPQRSTUVWXYZ0123456789";
+const int kHostSecretLength = 8;
+const char kHostSecretAlphabet[] = "0123456789";
// Generates cryptographically strong random number in the range [0, max).
int CryptoRandomInt(int max) {
« no previous file with comments | « no previous file | remoting/protocol/auth_token_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698