From 97ea1082efa773e987b13ddcf7c70af4dd73ab30 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sun, 18 Nov 2012 22:28:16 -0800 Subject: [PATCH] further shorten short session ID --- server-ca/daemon_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-ca/daemon_common.py b/server-ca/daemon_common.py index d612f4c0a..1b8874482 100644 --- a/server-ca/daemon_common.py +++ b/server-ca/daemon_common.py @@ -15,10 +15,10 @@ def signal_handler(a, b): r.lpush("exit", "clean-exit") def short(session): - """Return the first 12 bytes of a session ID, or, for a + """Return the first 8 bytes of a session ID, or, for a challenge ID, the challenge ID with the session ID truncated.""" tmp = session.partition(":") - return tmp[0][:12] + "..." + tmp[1] + tmp[2] + return tmp[0][:8] + ".." + tmp[1] + tmp[2] def random(): """Return 64 hex digits representing a new 32-byte random number."""