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

Wrong sha1 checksum for large files (around 1GB) #1229

Open
scremona-navico opened this issue Feb 28, 2024 · 2 comments
Open

Wrong sha1 checksum for large files (around 1GB) #1229

scremona-navico opened this issue Feb 28, 2024 · 2 comments

Comments

@scremona-navico
Copy link

scremona-navico commented Feb 28, 2024

The hash sha1 checksum for large files (1GB ish) on iOS, actual device, always gives back the same (wrong) value, regardless the size of the file.
Smaller files (around 500MB) are fine.
Tests on Simulator/Mac and Android actual device are fine.

// eg: download http://212.183.159.230/1GBFILE.zip 1,024 MB

const filePath = `${RNFS.DocumentDirectoryPath}/1GBFILE.zip`;
RNFS.hash(filePath, 'sha1').then(hash => console.log('sha1: ', hash));

// Expected value
      sha1:      86c210c323bda0d0b43a7cf2521b0657f0549286
// Output iOS
      sha1:      da39a3ee5e6b4b0d3255bfef95601890afd80709

iOS 15.8.1
"react": "17.0.2",
"react-native": "0.67.5",
"react-native-fs": "2.20.0",

@birdofpreyru
Copy link

Please, pay attention to the status & future of this library, noted in all recent issues opened in this repo!

#1197 — The future of react-native-fs

TL;DR.: This repo is stale, no active work happens here now. I actively maintain a fork of this project, but it lives, and it is managed through a different repo — https://github.com/birdofpreyru/react-native-fs.

@scremona-navico
Copy link
Author

@birdofpreyru thank you.
I'll check your fork and in the case I'll open there a ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants