* Now supports creation and verification of SFV (crc32) hash files.
* All functions support folders and subfolders EXCEPT "Hash Checker (Fast)..." for obvious reasons.
HashTools 1.0 Beta2
* Fixed credits (wrongfully credited Filehero)
* Fixed "Append Hash to Filename". Wrongfully appended hash to the extension of the file.
* Cleaned up and changed some CSS (it was not fully valid).
* Add "Remove Hash From Filename". NOTE: It removes ALL hashes that are present in the filename.
* Add some more condition checking.
* Add "Create Hash File". Creates md5sum compatible format.
* Add "Verify Hash File".
* Add code to make it possible to integrate hashfile verification and creation using Portable File Associations.
Various quick Hashing tools. I had a bit of fun with this one as you will soon tell
Anyway, I have to thanks 40k since a nice chunk of the code came from his own Hashing script which is only then heavily/moderately modified by me.
40k's Hashing Script: http://xyplorer.com/xyfc/viewtopic.php?f=7&t=9220
What Function Does It Has? [Hash] Pretty much the same function as 40k's hash script. I barely did anything to it. I did however use some Regex to get rid of unwanted empty blank lines. If I can only get that wrapping function to work propertly (filed a bug report), it should look simply like: [Hash Checker (Fast) - Specific File and Hash] So what this does is if you know the Hashing algorithm and value and you simply wanted to check whether a file matches up with it, use this function. It does not allow you to pick multiple files but in turn, it's much quicker since it will only hash 1 file and only hash using 1 algorithm. [Hash Checker (Slow) - Multiple Files and Hashes] This is also based on 40k's hashing script. What it does is allow you to easily copy a bunch of hash values/checksums without worrying about other random text data and the script will tell you if any of the hashes/checksums match up. There's also visual feedback about whether the the items are matching up or not with any of the pasted hashes. The one with the hashes that are matching up are emphasized. [Append Hash To Filename] Don't know how exactly useful this is but since I'm into Japanese pop culture, quite a bit of content are usually downloaded with checksums in their names. I'm also basically mimicking RapidCRC since it allows you to insert CRC checksums directly into the filename. This script function does the same thing and it will automatically use underscores or spaces depending on the filename to at least keep it consistent. Furthermore, you're not limited to CRC and can add any other hashes into the filename. [Verify Using Filename Inline Hash] This goes in hand with the appending hash into the filename. All this does is simply use the hashes that it finds in the filename and then see if the content and the hash match up. It's smart enough so it can handle any hashes and checksums that are between normal square brackets, curly braces, and parenthesis. Furthermore, if more than 1 hash/checksum exists in the file name, it will automatically go for the longest checksum and use that to compare. Setup
Download the script and copy it into <xyscripts> and do whatever you need with it. Nothing else to say.
The script can also be loaded using PFA to create and verify any md5, sha1, sha256, and sha512 hash files using:
Code: Select all
+"Create Hashfile With HashTools" *>::Load HashTools, "_HashFileCreate";
+"Verify With HashTools" sfv;md5;sha1;sha256;sha512>::Load HashTools, "_HashFileVerify";
Anyway, it's still beta since I need more testing and also some tweaking of the CSS that I used for the puuurrttty looks (at least in my eyes). Also proud that it's fully HTML5 validated. Hehe.