From c441f9c92d30078f047037f6f8067e196c7ea76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Wed, 26 Apr 2017 14:03:08 +0200 Subject: [PATCH] Use hex instead of base64, add also the original ciphertext. --- lib/SimpleSAML/Utils/Crypto.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Utils/Crypto.php b/lib/SimpleSAML/Utils/Crypto.php index 3dc695980..17dcd81f6 100644 --- a/lib/SimpleSAML/Utils/Crypto.php +++ b/lib/SimpleSAML/Utils/Crypto.php @@ -53,8 +53,8 @@ class Crypto } } - throw new \SimpleSAML_Error_Exception("Failed to decrypt ciphertext \"". - base64_encode($ciphertext).'", hmac: "'.base64_encode($hmac).'", iv: "'.base64_encode($iv).'"'); + throw new \SimpleSAML_Error_Exception("Failed to decrypt ciphertext \"".bin2hex($ciphertext). + '", hmac: "'.bin2hex($hmac).'", iv: "'.bin2hex($iv).'", msg: "'.bin2hex($msg).'"'); } -- GitLab