bitchan / eccrypto

JavaScript Elliptic curve cryptography library
Creative Commons Zero v1.0 Universal
302 stars 99 forks source link

eccryptoJS.encrypt doesn't accept Uint8Array #78

Closed wameup closed 3 years ago

wameup commented 3 years ago

eccryptoJS.encrypt() requires a Buffer and rejects a Uint8Array, while the originial eccrypto (https://github.com/bitchan/eccrypto) can accept both. This causes my app crash.

IMHO, Uint8Array is better than Buffer since Buffer is invalid in browser.

wameup commented 3 years ago

sorry, wrong place for this issue. It was meant to another project.