From 77e2ef45f05b8106ebe5400f8931c6e54ec6341b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 19 May 2015 02:16:12 -0700 Subject: mail_obscure - AES-256 is way too slow, simplify. Ideally a substitution cipher would be adequate for our requirements. --- include/text.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index bb704e35c..5b9b35c16 100644 --- a/include/text.php +++ b/include/text.php @@ -1198,11 +1198,10 @@ function unobscure(&$item) { function unobscure_mail(&$item) { if(array_key_exists('mail_flags',$item) && ($item['mail_flags'] & MAIL_OBSCURED)) { - $key = get_config('system','prvkey'); if($item['title']) - $item['title'] = crypto_unencapsulate(json_decode_plus($item['title']),$key); + $item['title'] = base64url_decode($item['title']); if($item['body']) - $item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key); + $item['body'] = base64url_decode($item['body']); } } -- cgit v1.2.3