Coder Social home page Coder Social logo

scripts's People

Contributors

clausing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scripts's Issues

sigs.pl doesn't handle filenames with spaces on Windows

Hi, on Windows 8.1, 64-bit, with ActivePerl 5.18.1, sigs.pl gets an error if the file I'm running it against has spaces in the file path (quoted):

i:>perl "c:\Program Files (x86)\Utilities\SYS\sigs.pl" "o:\Downloads\UTILS\SQLiteDatabaseBrowserPortable_3.8.0_English (github).paf.exe"
No filehandle passed at c:\Program Files (x86)\Utilities\SYS\sigs.pl line 53.

i:>perl "c:\Program Files (x86)\Utilities\SYS\sigs.pl" "Cisco ATA iTalkBB Shipm
ent - Pitney Bowes.pdf"
No filehandle passed at c:\Program Files (x86)\Utilities\SYS\sigs.pl line 53.

It does work on a file with no spaces, quoted or unquoted.

Thanks!

sigs.pl not producing correct output on Windows (except UNIX ASCII files)

Hi,

On Win8.1, 64-bit, sigs.pl works fine when run against it's own .pl source file, but on binary files and on DOS text files it does not appear to produce correct output.

example, download
https://www.sdcard.org/downloads/formatter_4/eula_windows/SDFormatterv4.zip

perl "c:\Program Files (x86)\Utilities\SYS\sigs.pl" SDFormatterv4.zip
SDFormatterv4.zip:
MD5: c36bed46bc0fee26c66ec5ef7c0d4e9d
SHA1: 28452f2fa2a96b00ab53e110784aecf1bca84cee
SHA256: ac7d09903f919d81e8f04ae8385d5fffb746dc74595ace21bcb0035bfd6f4af6
SHA512: 3b5049d46ddf62b7 4f9bfaa3d4e32d9e 0a590864deffb87e 2434a1b73ffa7f3c
5fbb1055cf047c0b af78cc976f127306 01ba62c1f3dbb11b 99a7e1ae1054ace5
SHA512: O1BJ1G3fYrdPm/qj1OMtngpZCGTe/7h+JDShtz/6fzxfuxBVzwR8C694zJdvEnMGAbpiwf
PbsRuZp+GuEFSs5Q==
SHA3-256: cc346c666940ff8c1b01aeb8d3834cff2081bbf55760c033a91ef2a7edd59332

However, other hashing programs ouput differently:

sha1sum SDFormatterv4.zip
83e49cbe2dd1dac8f0b802dde0f4612d167383e7 *SDFormatterv4.zip

sha256sum SDFormatterv4.zip
823eeb78b8574d505bae7c37c246fa6388f4f0698e703f08d711c14b91d4f08a *SDFormatterv4.zip

md5sum SDFormatterv4.zip
73dfcbcd9f970bb4e57c7dce84463f38 *SDFormatterv4.zip

The same is true on DOS text files with CRLF.
It only works correctly in Windows on UNIX ASCII files.

Also, ISTM the 2nd SHA512 output should say SHA512base64 or something to that effect to be clearer.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.