-
Notifications
You must be signed in to change notification settings - Fork 4
sha1 with js typed arrays
antimatter15/js-typed-array-sha1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
sha1 with js typed arrays
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published