I need to recreate this function in javascript:
tweetnacl.sealedbox.seal(new Uint8Array(n[0]), w); // w is a parseKey
https://github.com/dchest/tweetnacl-js
I have found a port in JS but it requires Node.js and I am interested in doing it in a browser way if I use Node.
Is there something already done? I haven't found it.