AAEncode 颜文字JS代码加密
一种“可爱”的JS代码加密方式,也被称为“颜文字加密”,通过编码将JS语法转化为包含众多“(゚ー゚)、(o゚ー゚o)、(o^_^o)”等表情字符的形式。
可加密前端Web浏览器、后端Node.JS等环境下的标准JS代码。被加密JS代码量建议不超过1KB。
优点:加密结果即奇怪又可爱,令人几乎想不到是JS代码。缺点:对执行性能有较大影响、加密代码很容易被还原。
不足:与同类工具 JSFuck 相比,AAEncode不具备“在父作用域中运行”功能,假如代码中如有变量定义,变量不能在加密代码外部访问。
注意:代码尽可能是规范JS语法,例如:一行变量定义以“;”号结尾,而非直接回车结束。
TIP:少量JS代码可用AAEncode加密。较多代码建议使用专业JS混淆加密工具,如: JShaman.com、 JS-Obfuscator.com、 JsJiami.online 等。
JS源代码
加密结果
声明:本工具修改自Github开源项目aaencode-and-aadecode,进行了汉化、优化、Bug修复等,且后续将持续更新。
MIT License
Copyright (c) 2018 jamtg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License
Copyright (c) 2018 jamtg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.