You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
I was trying to figure out how to hash a file in the browser. Unfortunately the documentation wasn't a big help and I had to dig around in the issues (namely #55 and #119) and in the source.
It would be nice to have some examples to consult. I can provide the solution I ended up with for hashing a large file in chunks hash_large_file.html.
The code is no-frills vanilla JS and I hope it is easy to understand, self explanatory, and doesn't contain an embarrassing bug.
The text was updated successfully, but these errors were encountered:
I wanted to ask exactly this.
I want to be able to do something like this in my app:
// prepare data to save on serverconstdataToServer=encrypt('some string',secret)// with a secret// after retrieving data from serverconstdataFromServer=decrypt(data,secret)
How to use with client browser and for example key generation (example with external and compatible JS tool) and some more examples for sign / verify, encrypt / decrypt? Or a demo to see how it works and take a look in the source code.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was trying to figure out how to hash a file in the browser. Unfortunately the documentation wasn't a big help and I had to dig around in the issues (namely #55 and #119) and in the source.
It would be nice to have some examples to consult. I can provide the solution I ended up with for hashing a large file in chunks hash_large_file.html.
The code is no-frills vanilla JS and I hope it is easy to understand, self explanatory, and doesn't contain an embarrassing bug.
The text was updated successfully, but these errors were encountered: