Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#747) Switch CryptoHashProvider to filestream for hashing files #2714

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Jun 12, 2024

  1. (chocolatey#747) Switch CryptoHashProvider to filestream for hashing …

    …files
    
    Previously, when getting the checksum of a file, this read the file
    into a byte array to pass to ComputeHash. However, this was limited to
    files of 2gb or less, and was not efficent memory wise. This changes
    the method to using a filestream which is passed to ComputeHash, which
    should allow arbitrary file sizes with better memory usage.
    
    The unit test for this method had to be removed because the mock
    filesystem does not allow opening a file stream.
    TheCakeIsNaOH committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    bda2cf3 View commit details
    Browse the repository at this point in the history