1 Star 1 Fork 3

猿帅/Ape - JS混淆加密插件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
1年前
1年前
1年前
Loading...
README
Apache-2.0

Ape - JS混淆加密插件

介绍

这是一个用于在Maven打包时将js文件进行混淆加密的插件

使用说明

拉取代码并安装到本地(不想拉也行,反正我把它放到了Maven中央仓库)

git clone git@gitee.com:admin_yys/ape-js-obfuscator-maven-plugin.git

cd ape-js-obfuscator-maven-plugin

mvn clean install

在你的项目中使用插件(pom.xml中添加)

inputDirectory为JavaScript源文件存储位置,默认为${project.basedir}/src/main/resources

outputDirectory为混淆加密后文件输出位置,默认为${project.build.directory}/processed-resources

插件执行的生命周期是compile,也就是生成jar包之前。 所以应该把outputDirectory的值改为${project.build.directory}/classes, 也就是混淆后的文件直接替换掉要被打包jar包中的文件,但具体情况具体分析,示例仅为我的使用方式。

<plugins>
    <plugin>
        <groupId>com.ape9527</groupId>
        <artifactId>ape-js-obfuscator-maven-plugin</artifactId>
        <version>0.1.0</version>
        <executions>
            <execution>
                <goals>
                    <goal>obfuscate-js</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <inputDirectory>${project.basedir}/src/main/resources</inputDirectory>
            <outputDirectory>${project.build.directory}/processed-resources</outputDirectory>
        </configuration>
    </plugin>
</plugins>

空文件

简介

一个用于在Maven打包时将js文件进行混淆加密的插件 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者 (2)

全部

近期动态

Pushed new commit to master branch 1 year ago, 784b75b...3c2089d
Pushed new commit to master branch 1 year ago, 010cacf...784b75b
Pushed new commit to master branch 1 year ago, 63b14de...010cacf
Pushed new commit to master branch 1 year ago, a0522af...63b14de
Pushed new commit to master branch 1 year ago, 6ab3de3...a0522af
加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/admin_yys/ape-js-obfuscator-maven-plugin.git
git@gitee.com:admin_yys/ape-js-obfuscator-maven-plugin.git
admin_yys
ape-js-obfuscator-maven-plugin
Ape - JS混淆加密插件
master

搜索帮助