         cn?.send res
 
     getUID: (prefix='')->
-        hash = crypto.createHash('md5')
+        hash = crypto.createHash('sha1')
         hash.update _.uniqueId prefix + new Date().getTime()
         return hash.digest('hex').slice(0, 8)
 

        cn._tunnelled = clientId

        @disconnect cn, clientId
        @response cn, null, 'tunnel', '/connected', client: clientId, exists: exists

    rename: (cn, q)->
        # Do nothing if no client parameter, or already exists or equal with current

                when '/rename'
                    @rename cn, mes.query if cn._tunnelled

        else if cn._tunnelled and mes.auth
            @tunnelMessage cn, mes, data

    connect: (cn, q)->
