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 Sep 13, 2024. It is now read-only.
In my React Native project, I decrypt data sent from another React frontend. The 2 most heavily used algorithms are RSA-OEAP and AES-GCM. Unfortunately, I found that the RSA-OEAP support was pretty broken, and using this
crypto.subtle.encrypt({name: "RSA-OAEP",//label: Uint8Array([...]) //optional},publicKey,//from generateKey or importKey abovedata//ArrayBuffer of data you want to encrypt).then(function(encrypted){//returns an ArrayBuffer containing the encrypted dataconsole.log(newUint8Array(encrypted));}).catch(function(err){console.error(err);});
In my React Native project, I decrypt data sent from another React frontend. The 2 most heavily used algorithms are RSA-OEAP and AES-GCM. Unfortunately, I found that the RSA-OEAP support was pretty broken, and using this
snippet from the WebCrypto examples repo in the readme caused an error:
After adding the hash name (SHA-512), it didn't return any error but returned an empty ArrayBuffer []
I hope that this issue can be fixed soon (maybe by merging the latest mscrypto library?) so that i can use this library in my project.
The text was updated successfully, but these errors were encountered: