我的代码在 WebAssembly 中有多私密? [英] How private is my code in WebAssembly?

查看:26
本文介绍了我的代码在 WebAssembly 中有多私密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 Web 服务器上运行了一些 C++ 二进制文件来进行一些计算,我正在考虑使用 Webassembly 将它移到用户端.我的问题是我的 C++ 代码有多私密?是否可以将已编译的 Webassembly 文件转换回 C++?

I have some c++ binary running on my web server that does some calculations and I was thinking about moving it to the user side using Webassembly. My question is how private will my c++ code be? Is it possible to transform a compiled Webassembly file back to c++?

推荐答案

私密性如何?一点都不私密.您的 WebAssembly 代码通过 HTTP 传送到执行它的客户端机器.它有点模糊,但几乎没有私密性.

How private is it? Not private at all. Your WebAssembly code is delivered over HTTP to the client's machine where it is executed. It is obfuscated a little, but hardly private.

代码以二进制格式提供,但使用现成的工具,例如wasm2wat,这可以很容易地转换成人类可读的文本格式.文本是一种相对低级的语言,但仍然相当可读.它不会保护您的算法,只会让人们花更长的时间来理解它们.

The code is delivered in a binary format, however using readily available tools, e.g. wasm2wat, this can easily be converted into a human readable text format. The text is a relatively low level language, but still quite readable. It will not protect your algorithms, it will simply take people a little longer to understand them.

WebAssembly 不容易转换回更高级别的语言(例如 C++),但这不会使您的算法私有.

WebAssembly is not readily transformable back to higher level languages (e.g. C++), but this does not make your algorithm private.

这篇关于我的代码在 WebAssembly 中有多私密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆