public function isEncryptedString($encrypted, $key)
    {
        try
        {
            $data = JWT::decode($encrypted, $key);
        }
        catch(Exception $e)
        {
            return false;
        }

        return is_string($data->string);
    }