js-typed-array-sha1
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:sha1 with js typed arrays
So far, this works with everything I've managed to throw at it.

It's an implementation of SHA-1 in Javascript, using Typed Arrays and can process fairly large files (I tried it on a 3.9GB file, and it worked). On my computer it can process over 2MB/s, even though it isn't really heavily optimized.

I don't really know what is bottlenecking performance, it may be the conversion between little endian (what typed arrays on x86 uses). In the future, it's probably a good idea to make this hardware-agnostic (which wouldn't be that hard, it just needs to do feature basic detection).

It doesn't work in Firefox because they don't have a FileReader in Workers.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。