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"; |
Jamie
2011/05/20 22:37:55
I think this wants to be 7, since the support id i
Sergey Ulanov
2011/05/20 22:42:41
Length of support ids generated by directory is no
|
// Generates cryptographically strong random number in the range [0, max). |
int CryptoRandomInt(int max) { |