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

Derived crypto keys #37

Open
sandberg75 opened this issue May 25, 2021 · 2 comments
Open

Derived crypto keys #37

sandberg75 opened this issue May 25, 2021 · 2 comments

Comments

@sandberg75
Copy link

Hi, when I did a security testing of my app I got the warning that I use derived crypto keys. the way I use the library is like this.

const sha256Hash = await RNSimpleCrypto.SHA.sha256(buffer);
const key = RNSimpleCrypto.utils.convertArrayBufferToHex(sha256Hash);

The warning I get is:
Reference: javax.crypto.Cipher.doFinal
Encryption with insecure cipher: AES/ECB/NoPadding
Raw input: [17,39,32,-98,94,-7,-45,18,-74,-27,-68,-69,124,57,-101,101]

Any idea how I can fix my code to not generate such warnings? I do not even know if that part of library is something I use or not, that generates the warning.

@ghbutton
Copy link
Owner

I am not sure how to fix this, I can try to reproduce

@ghbutton
Copy link
Owner

The warning is not around your code but I will try to silence. How are you testing?

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