当前位置:网站首页>调用JShaman的Web API接口,实现JS代码加密。
调用JShaman的Web API接口,实现JS代码加密。
2022-07-27 00:14:00 【w2sfot】
在NodeJS中,调用JShaman的Web API接口,实现JS代码加密。
同样的方法,也可把该功能集成到自己的产品或项目中,让自己也具备JS加密功能。
调用JShaman接口的源码非常简单:
/*调用JShaman.com Web API ,实现JS代码加密*/
//JS代码,测试用
var js_code = `
var a=1;
var b=true;
console.log(a,b);
`;
//JShaman.com提交代码接口地址
var jshaman_url = "http://www.jshaman.com:800/submit_js_code/";
//同步请求库
var request = require("sync-request");
console.log(js_code);
//发起POST请求
var res = request("POST",jshaman_url,{
json:{
"js_code":js_code, //js代码
"vip_code":"free" //
}
});
//返回结果:含加密的js代码
var json_res = JSON.parse(res.getBody('utf8'));
//输出
console.log(json_res);JShaman是专业的JavaScript源代码保护服务提供商。
这里使用的是JShaman的免费加密接口。JShaman也有收费的商业接口,对JS代码的加密效果更好。
更进一步而言,JShaman还支持本地化部署,比如可以部署在内网或是自己的产品环境中。
边栏推荐
- Rust web (I) -- self built TCP server
- Leetcode- > binary search clock in
- [Ryu] common problems and solutions in installing Ryu
- 无效的目标发行版:17 的解决办法
- 数据资产管理的概念
- 中断、信号、系统调用
- Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round
- [NISACTF 2022]上
- 函数栈帧详解
- Cs224w fall course - --- 1.1 why graphs?
猜你喜欢

Plato Farm通过LaaS协议Elephant Swap,为社区用户带来全新体验

com.fasterxml.jackson.databind.exc.InvalidDefinitionException

c语言:深度学习递归

Interview shock 68: why does TCP need three handshakes?

Play a parallel multithreaded mcu-mc3172

Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round

「软件测试」包装简历从这几点出发,直接提升通过率

文章摘要智能提取【基于BERT技术】

Functions of libraries and Archives

动态设置小程序swiper的高度
随机推荐
I heard that you knelt on the interface test during the interview?
LabVIEW中编程更改进程的优先级
【RYU】安装RYU常见问题及解决办法
swiperjs自定义宽度
Debezium series: the binlog file cannot be recovered after the record is hung from the library server, and the task is switched to the main library to ensure that the data is not lost
Arduinouno drive RGB module full color effect example
消息队列学习 -- 概念
CuteOne:一款OneDrive多网盘挂载程序/带会员/同步等功能
Lua函数之非全局函数
Non global function of lua function
Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
Applet utils
云开发寝适闹钟微信小程序源码
JS utils fragmented
面试突击68:为什么 TCP 需要 3 次握手?
Ansible series: do not collect host information gather_ facts: False
time模块: 时间戳、结构化时间、格式化时间的获取与相互转化
F8 catch traffic, F9 catch rabbits, f10turttle
Web3.0 world knowledge system sharing - what is Web3.0
八皇后编程实现