felixge/node-formidable — pull request #106 by wermut (2011-11-12 12:08:05+00:00)
Title: file checksum calculation (md5, sha1)

I have reimplemented the idea `sixtus` had a year ago. It will allow the user to get the file checksum. (https://github.com/felixge/node-formidable/pull/17). I think that we no longer need to test for crypto, because crypto is now a core module of node.js.

I use it with the form file event.

```javascript
var form = new formidable.IncomingForm();
form.checksum = 'sha1';

form.on('file', function(name, file) {
console.log( file.checksum )
});

form.parse(request);
```