From 391db616297fab5db1531d31e36884af245ae9ac Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 10 Feb 2021 19:27:00 +0000 Subject: revert z_(un)obscure() until (un)obscurify() will be implemented and a update will take care of the data in db --- include/crypto.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crypto.php b/include/crypto.php index d91d3749c..b09356fc7 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -462,12 +462,12 @@ function convert_salmon_key($key) { function z_obscure($s) { - return json_encode(Crypto::encapsulate($s,get_config('system','pubkey'))); + return json_encode(crypto_encapsulate($s,get_config('system','pubkey'))); } function z_unobscure($s) { if(strpos($s,"{\"") !== 0) return $s; - return Crypto::unencapsulate(json_decode($s,true),get_config('system','prvkey')); + return crypto_unencapsulate(json_decode($s,true),get_config('system','prvkey')); } -- cgit v1.2.3