plugins/mod_storage_xep0227.lua
changeset 12359 a0ff5c438e9d
parent 12199 c5788969b812
child 12458 b2438f374b3e
--- a/plugins/mod_storage_xep0227.lua	Fri Mar 04 15:03:02 2022 +0000
+++ b/plugins/mod_storage_xep0227.lua	Fri Mar 04 15:22:45 2022 +0000
@@ -68,11 +68,11 @@
 end
 
 local function hex_to_base64(s)
-	return base64.encode(hex.from(s));
+	return base64.encode(hex.decode(s));
 end
 
 local function base64_to_hex(s)
-	return base64.encode(hex.from(s));
+	return base64.encode(hex.decode(s));
 end
 
 local handlers = {};