Closed guerrillalg closed 6 years ago
Does it compatible with IE10?
Array methods are compatible with all browsers listed in the compatibility table: http://kangax.github.io/compat-table/es5/
Thanks, looks legit. But the problem is not only with instanceof Array
.
Suitable replacement is need also for:
instanceof ArrayBuffer
: https://github.com/vibornoff/asmcrypto.js/blob/master/src/utils.js#L135-L137instanceof Uint8Array
: https://github.com/vibornoff/asmcrypto.js/blob/master/src/utils.js#L139-L141instanceof <TypedArray>
: https://github.com/vibornoff/asmcrypto.js/blob/master/src/utils.js#L143-L149 (ArrayBuffer.isView
doesn't work with IE10 and probably Safary).For those methods, I can't say anything. Either they are not used in our case, or they work. We use RSA encryption, SHA512 hashing and HMAC_SHA signing.
What are the system requirements?
IE10+, FF22+, Opera12+, Safari5.1+
Eventually, we are trying to use your library in our GWT project and have the following problem: Line https://github.com/vibornoff/asmcrypto.js/blob/master/src/rsa/rsa.js#L17
if ( key instanceof Array ) {
Is failing the check and thus, we get an exception constantly. However, we pass a key as an Array. After googling a while, I've found out the following:And indeed, GWT does some work in a different frame. I've put the following code for an expirement:
if ( Array.isArray(key) ) {
And it did work fine for us. So, the question is if you can use Array.isArray for the checks?