Of course there are existing CRC32/SFV tools and this is not to replace them, but this is a nice alternative making use of the standard tools that come with the OS. If you are using Linux, you probably already have OpenSSL installed. Cygwin is an open source tool collection that allows Unix or Linux applications to be run on Windows from within a Linux-like interface. bash_profile so you can use the crc32 command in all your Terminals. This example was created using Cygwin64 for Windows. This should be one long line replace the line break with a single space when you enter the function: function crc32 Here's an example of the new function in use: $ cd "/Library/Desktop Pictures/"$ crc32 Aqua\ Blue.jpg FEDCA2D9 Aqua Blue.jpg$ crc32 *.png59B02128 Small Ripples graphite.pngFA28E0A8 Small Ripples.pngYou can also put the function in your. The oneliner is written for the Bourne shell ( bash), and uses cksum in combination with ruby. ![]() So I made a small one-liner to convert the output to hex to make it more usable in the Internet world. The only downside is that the output of the CRC is in decimal only. Mac OS X comes with a nice commandline tool called cksum to calculate CRC16/32 checksums of files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |