public function decrypt($encrypted, $privateKey)
    {
        $rsa = new RSA();
        $rsa->loadKey($privateKey);

        return $rsa->decrypt($encrypted);
    }
public function decrypt($encrypted, $privateKey)
    {
        $rsa = new RSA();
        $rsa->loadKey($privateKey);

        return $rsa->decrypt($encrypted);
    }
public function decrypt ( $ encrypted , $ privateKey ) { $ rsa = new RSA ( ) ; $ rsa -> loadKey ( $ privateKey ) ; return $ rsa -> decrypt ( $ encrypted ) ; }
Decrypt encrypted contents with the recipient's private key

@param string $encrypted
@param string $privateKey

@return string
Decrypt encrypted contents with the recipient s private key