# HG changeset patch # User Kim Alvefur # Date 1649423359 -7200 # Node ID 10cc52e4b310117a4694e18a5b9e56ddd06c78bf # Parent 8b7895266e997672dcf40c83fb1344b6018eec71 mod_storage_xep0227: Fix conversion of SCRAM into internal format (fix #1741) Looks like this function was a copy of hex_to_base64 without modifying it to do its inverse. diff -r 8b7895266e99 -r 10cc52e4b310 plugins/mod_storage_xep0227.lua --- a/plugins/mod_storage_xep0227.lua Thu Mar 31 18:53:23 2022 +0200 +++ b/plugins/mod_storage_xep0227.lua Fri Apr 08 15:09:19 2022 +0200 @@ -72,7 +72,7 @@ end local function base64_to_hex(s) - return base64.encode(hex.decode(s)); + return hex.encode(base64.decode(s)); end local handlers = {};