Skip to content

Added support for hashing with secret key. Android only #241

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

brystfire08
Copy link

Usage:

let myAlgorithm = "HmacMD5"; // can be HmacSHA1, HmacSHA256, etc...
let mySecretKey = "secret"; // secret key

RNFetchBlob.fs.hashWithKey(targetPath, myAlgorithm, mySecretKey)
.then((hash) => {
  console.log(hash)
})
.catch((error) => {
  console.log(error);
});

if this is accepted hopefully someone apply it for ios too

@Traviskn
Copy link

I would prefer to avoid adding new API that only supports a single platform, unless there is something inherently platform specific about the functionality. If someone were willing to also implement iOS support then I would be more open to adding this new functionality

@Traviskn Traviskn added the help wanted Extra attention is needed label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants