Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm and Glue JS is being encrypted #7

Closed
sonht0555 opened this issue Oct 22, 2024 · 8 comments
Closed

Wasm and Glue JS is being encrypted #7

sonht0555 opened this issue Oct 22, 2024 · 8 comments
Assignees
Labels
feature-request 💡 Request the addition of a feature

Comments

@sonht0555
Copy link

sonht0555 commented Oct 22, 2024

@joamag I want to see how boytacean core works through wasm files and glue js files. But it is being encrypted, how can they not be encrypted? I am trying to build another frontend for it, like kabu.io.vn I am doing for my GBA emulator.

Please help me, I tried downloading your emukit here, it would be good if you provide it in unencrypted form.
boytacean-wasm.zip

@sonht0555
Copy link
Author

I tried your emulator for 2 hours, it really impressed me a lot when running on IOS. Thanks for creating it

@joamag
Copy link
Owner

joamag commented Oct 22, 2024

I'm not sure I understand what you mean by encrypted. That zip file is not encrypted and contains the WASM core (.wasm file) used for Boytacean. It uses wasm-bindgen for wasm code generation, which can make it a bit trickier than usual to make use of.

You shouldn't need the emukit to run the emulator - that's just a "helper" to build the UI.

If you provide some details on what you're trying to achieve, I can probably help :).

@joamag joamag added the feature-request 💡 Request the addition of a feature label Oct 22, 2024
@sonht0555
Copy link
Author

@joamag

let e,t;function n(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function r(e){return e&&e.__esModule?e.default:e}var a,i,o,l,s,u,c,d,f,h,p,m,g,_,y,v,b,w,k,S,E,x,C,R,A,T,N,I,z,L,B=globalThis,D={},O={},M=B.parcelRequire37dc;null==M&&((M=function(e){if(e in D)return D[e].exports;if(e in O){var t=O[e];delete O[e];var n={id:e,exports:{}};return D[e]=n,t.call(n.exports,n,n.exports),n.exports}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t)

Here is a snippet from the index.4c0ff51e.js file. It is encoded and makes it harder to read. Can you provide a more readable file? It is almost minified.

@joamag
Copy link
Owner

joamag commented Oct 22, 2024

@joamag

let e,t;function n(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function r(e){return e&&e.__esModule?e.default:e}var a,i,o,l,s,u,c,d,f,h,p,m,g,_,y,v,b,w,k,S,E,x,C,R,A,T,N,I,z,L,B=globalThis,D={},O={},M=B.parcelRequire37dc;null==M&&((M=function(e){if(e in D)return D[e].exports;if(e in O){var t=O[e];delete O[e];var n={id:e,exports:{}};return D[e]=n,t.call(n.exports,n,n.exports),n.exports}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t)

Here is a snippet from the index.4c0ff51e.js file. It is encoded and makes it harder to read. Can you provide a more readable file? It is almost minified.

This is the minified version of the file after parcel processing. You can check the source code of the web frontend here.

@sonht0555
Copy link
Author

@joamag Thanks a lot, I don't need to see the frontend code yet, I want to see the index.4c0ff51e.js file. It (glue file) is the control and connection glue file boytacean_bg.522d134b.wasm. The problem is that it is being minified, I can't read it, can you provide that file without being minified?

@joamag
Copy link
Owner

joamag commented Oct 23, 2024

@sonht0555 try to take a look here https://www.npmjs.com/package/boytacean?activeTab=code

This contains the npm package for Boytacean which is a result of running:

cargo install wasm-pack
wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm

as stated in README.md

@sonht0555
Copy link
Author

@joamag Thank you very much, I will try to read it.

@joamag
Copy link
Owner

joamag commented Dec 1, 2024

Closing this one as fixed

@joamag joamag closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request 💡 Request the addition of a feature
Projects
None yet
Development

No branches or pull requests

2 participants