         generate: (conversionParams) =>
                 return new FileCacheInstance @, conversionParams
 
-        _getDigest: (conversionParams) ->
+        getDigest: (conversionParams) ->
                 paramList = []
                 for key, value of conversionParams
                         paramList.push("#{key}:#{value}")

                @converters =
                        mp3: new Mp3Converter()
                        ogg: new VorbisConverter()

        _conversionDone: (err, cacheInstance, tempname, response) =>
                if err
                        fs.exists tempname, (exists) =>
                                if exists
                                        fs.unlink tempname
                                response.send "Failed to convert.", 500
                        return
                fs.stat tempname, (statErr, stats) =>
                        if statErr
                                response.send "Failed to read resulting file name.", 500
                                return
                        stream = fs.createReadStream tempname
                        stream.on "end", =>
                                fs.unlink tempname
                        cacheInstance.createCache tempname, (err, location) ->
                                response.set "location", location
                                response.send "Go to #{location}", 302

        convert: (type, filename, response) =>
                if type not of @converters

                return hash.digest("hex")

        _createFilename: (conversionParams) =>
                digest = @getDigest conversionParams
                filename = "#{digest}.#{conversionParams.suffix}"
                return filename

