From 383b69f04c4ba7015a30520c8513b40b43ef93ce Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Sun, 13 Oct 2019 05:21:45 -0400 Subject: [PATCH] Take out some annoying letters to speak over the phone Session key entropy goes from 149 to 144 bits. It's acceptable Fixes #31 --- tmate-main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tmate-main.c b/tmate-main.c index eec8bdca..a840cdc9 100644 --- a/tmate-main.c +++ b/tmate-main.c @@ -231,9 +231,10 @@ int main(int argc, char **argv, char **envp) return 0; } -static char tmate_token_digits[] = "abcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "0123456789"; +static char tmate_token_digits[] = "abcdefghjkmnpqrstuvwxyz" + "ABCDEFGHJKLMNPQRSTUVWXYZ" + "23456789"; + #define NUM_DIGITS (sizeof(tmate_token_digits) - 1) static char *get_random_token(void)