npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ofd-wasm

v0.1.4

Published

#### 介绍

Downloads

3

Readme

ofd-wasm

介绍

冠群 OFD 轻阅读相关的 wasm,将 ofd 验签工作放到 web 汇编中执行, 提升运行速度和源代码保护的安全性。

软件架构

可以的,使用一些混淆和迷惑的技术可以增加攻击者理解和修改你的代码的难度。以下是一些可能的方法:

方法名称混淆:你可以使用一些不易理解的方法名称,例如使用随机字符串作为方法名称。这可以使得攻击者难以理解每个方法的功能。

代码混淆:你可以使用一些代码混淆技术,例如插入一些无用的代码,或者使用复杂的控制流。这可以使得攻击者难以理解和修改你的代码。

动态加载和执行:你可以动态地加载和执行 WASM 方法,例如使用 eval 或 Function 构造函数。你可以在运行时生成或修改方法名称,这可以使得攻击者难以找到真正的方法。

加密和解密:你可以在服务器端加密你的 WASM 文件,然后在客户端解密并执行。这可以防止攻击者直接查看和修改你的 WASM 文件。

请注意,这些方法只能增加攻击者的难度,但不能完全防止攻击。如果攻击者有足够的时间和资源,他们可能仍然能够理解和修改你的代码。因此,你应该定期更新你的混淆和保护方法,以对抗新的攻击技术。并且,你应该使用其他的安全措施,例如使用 HTTPS 来防止中间人攻击,使用 CSP 来防止跨站脚本攻击,等等。

function example() { for (let i = 0; i < 10; i++) { if (i == 9) { callWasmFunction(); } } }

function example() { for (let i = 0; i < 10; i++) { if (i % 2 == 0) { continue; } callWasmFunction(i); } } 在这个例子中,callWasmFunction() 只会在 i 是奇数时被调用。这可能会使得代码更难以理解。

数据混淆:你可以改变你的数据的表示方式,使其更难以理解。例如,你可以使用不常见的数制(如二进制或十六进制)来表示你的数据,或者使用复杂的数据结构来存储你的数据。

let a = 0b1010; // equivalent to let a = 10; let b = 0x0A; // equivalent to let b = 10;

代码间插:你可以在你的代码中插入一些无关的代码,使得代码的流程更难以跟踪。这些插入的代码可以是无效的,也可以是执行一些无关的操作。

函数拆分和合并:你可以将一个函数拆分成多个小函数,或者将多个函数合并成一个大函数,以改变代码的结构。这可以使得代码的流程更难以跟踪。

变量和函数重命名:你可以使用一些无意义或误导性的名称来命名你的变量和函数。这可以使得代码更难以理解。

function a1B2c3() { // instead of function calculate() let _0x1a2b = 10; // instead of let total = 10; let _0x3c4d = 20; // instead of let multiplier = 20; return _0x1a2b * _0x3c4d; }

使用间接的函数调用:你可以使用间接的方式来调用你的函数,例如使用函数指针或虚函数。这可以使得函数调用的流程更难以跟踪。

let functions = { 'f1': function() {console.log('This is function 1')}, 'f2': function() {console.log('This is function 2')} }; let functionName = 'f1'; functionsfunctionName; // calls function 1

在这个例子中,我们使用 /* eslint-disable no-unused-vars / 和 / eslint-enable no-unused-vars / 注释来临时禁用 no-unused-vars 规则。 function callWasmFunction() { / eslint-disable no-unused-vars / console.log('Start'); let a = 0; for (let i = 0; i < 10; i++) { a += i; } console.log(a); wasmFunction(); console.log('End'); / eslint-enable no-unused-vars */ }

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/