From 04007ea38c5a9c2e4ff1bccd7f639148e0ba94a7 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Sun, 20 Feb 2022 16:30:11 -0500 Subject: [PATCH] lowercase base32 in tahoe-lafs convention --- src/_zkapauthorizer/tahoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_zkapauthorizer/tahoe.py b/src/_zkapauthorizer/tahoe.py index 848d516..d9271d0 100644 --- a/src/_zkapauthorizer/tahoe.py +++ b/src/_zkapauthorizer/tahoe.py @@ -59,7 +59,7 @@ def _scrub_cap(cap: str) -> str: can usually be distinguished from the scrubbed version of a different input string. """ - scrubbed = b32encode(sha256(cap.encode("ascii")).digest())[:6] + scrubbed = b32encode(sha256(cap.encode("ascii")).digest())[:6].lower() return f"URI:SCRUBBED:{scrubbed}" -- GitLab