diff --git a/include/crypto.php b/include/crypto.php index a4ce2cf98..494a2a5b9 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -296,34 +296,6 @@ function salmon_key($pubkey) { return 'RSA' . '.' . base64url_encode($m,true) . '.' . base64url_encode($e,true) ; } -// old function for providing mysql compatible encryption and is also -// used in Friendica 'RINO'. This function is messy and should be retired. - - -function aes_decrypt($val,$ky) -{ - $key="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; - for($a=0;$a=0 and ord(substr($dec, strlen($dec)-1,1))<=16)? chr(ord( substr($dec,strlen($dec)-1,1))):null)); -} - - - -function aes_encrypt($val,$ky) -{ - $key="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; - for($a=0;$a