etienne-martin / WebCrypto.swift

A small collection of cryptographic functions based on the JavaScript WebCrypto API.
Other
20 stars 12 forks source link

Unable to load WebCrypto.js on iOS 9.3-9.3.3 #2

Closed KMamedoff closed 7 years ago

KMamedoff commented 7 years ago

It works perfectly on iOS 10 screen shot 2017-05-28 at 03 32 09

premrajD commented 7 years ago

@etienne-martin, I am also facing the same issue on iOS 9.x. I did try to follow some posts to resolve the issue on my own. It did not help either.

KMamedoff commented 7 years ago

I am now using RNCryptor. It works both on iOS 9 and 10.

etienne-martin commented 7 years ago

Problem solved!

Thanks for taking the time to report about the issue.

Today I learned that iOS 9 doesn't support the ES6 const keyword.

Here's the culprit: https://github.com/etienne-martin/WebCrypto.swift/commit/981058516662dc842097d31164dc5d54c2e27af2#diff-714c7be7ac90b304cdf80ff10539da66R363

Thanks again.