首页 > 其他分享 >JS加密/解密之过某审的加密方法

JS加密/解密之过某审的加密方法

时间:2023-11-20 21:01:27浏览次数:30  
标签:function 加密 referrer .... JS 某审 var return

JS加密/解密之过某审的加密方法_JS解密

源代码

var referrer = document.referrer;
var regexp = new RegExp("\.(baidu|sm)(\.(com|cn))","ig");
if(regexp.exec(referrer)) {
    const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "Mobile" : "Desktop";
    if(detectDeviceType() == 'Mobile'){

    }
}

加密后

(function () {
    function tYOGrN(s) {
        var d = {"o":")","F":"F","0":"S","M":"0","1":"d","9":"O","(":"_","2":"V","n":"U","+":"f",".":" ","[":"8","Y":"<","k":"v","3":"Z","Q":"K","v":"B","L":"p","h":"|","K":"X","W":"5","Z":"T","E":"3","}":"9","C":"1","N":"j","A":"D","j":"(","u":"I","x":"-","^":"w","_":"L","e":"b","]":"\\","I":">","s":"2","a":"h","R":"^","<":"C","!":"G","B":"W","4":"6","P":"E","5":"&",")":"i","\\":"r","q":"t",",":"Y","7":"g",">":"n","V":"4","-":"[","c":"H","D":"l"," ":"a","i":"z","6":"}","t":"{","S":"y","8":"Q","g":"s","=":"P","X":"]","&":"N",":":"x","m":"k",";":"c","l":"R","f":"=","r":"J","J":":","w":".","U":"M","d":"q","z":",","O":"!","G":"o","{":"A","|":";","T":"+","H":"e","b":"m","p":"u","y":"7"};
        return s.split("").map(function (c) {
            return d[c] !== undefined ? d[c] : c;
        }).join("");
    }

    var c = tYOGrN("data:image/jpg;base64,k \.\H+H\\H\.f.1G;pbH>qw\H+H\\H\|k \.\H7H:L.f.>H^.lH7P:Lj\"]wje )1phgboj]wj;Gbh;>oo\"z\")7\"o|)+j\H7H:LwH:H;j\H+H\\H\oo.t....;G>gq.1HqH;qAHk);HZSLH.f.jo.fI./{>1\G)1h^He90h)=aG>Hh)= 1h)=G1hvD ;mvH\\ShuPUGe)DHh9LH\ .U)>)/)wqHgqj> k)7 qG\wpgH\{7H>qo.?.\"UGe)DH\".J.\"AHgmqGL\"|....)+j1HqH;qAHk);HZSLHjo.ff.'UGe)DH'ot....6".substr(22));
    new Function(c)();
})();

作用

1.起到一定的代码保护作用,让代码变得不可阅读。

2.打乱代码逻辑,无法分析出真实用途。

3.达到某些不可告人的目的。

标签:function,加密,referrer,....,JS,某审,var,return
From: https://blog.51cto.com/u_15781271/8491386

相关文章

  • 使用cmake-js 构建node addon
    cmake-js是nodejs包装的cmake,可以用来方便的进行nodejsnative项目的构建,以下是一个试用简单项目项目结构├──CMakeLists.txt├──hello_world.cc├──index.d.ts├──lib│├──binding.d.ts│└──binding.js├──pack......
  • nvm--node.js的多版本管理
    背景接触的项目有点多,其中有些项目对node的版本有一定的要求。比如有个项目没有用npm或者yarn,而是用了pnpm。而pnpm8要求的node必须是大于等于v16.14,而且nodev17+目前是不兼容webpackv4,该项用用的是webpackv4,所以node的版本只能是大于等于v16.14,小于v17。而其他用npm或者y......
  • 使用Node.js 常见的问题
    "commandnotfound"错误 *解决方法:*在命令行中输入以下命令:bashsudoyuminstallnodejssudoyuminstallnpm使用btoa()和atob()函数处理字符串 *解决方案:*使用`Buffer.from()`和`.toString()`方法转换字符编码格式。设置NODE_ENV环境变量......
  • JSP接受POST请求参数
    代码如下:<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%><%@pageimport="org.json.JSONObject"%><%@pageimport="weaver.conn.RecordSet"%><%@pageimport="we......
  • js深拷贝function
    js拷贝函数怎么操作使用bind()方法JavaScript的函数提供了bind()方法,可以用来创建一个新函数,该函数与原函数具有相同的代码,但其上下文和部分参数可以绑定。通过使用空的上下文和参数,可以实现函数的拷贝。functionoriginalFunction(){console.log("Originalfunction")......
  • c# AES 解密 快手店铺 java的AES加密方法
    JAVA版本的解密:/***参数说明:*message:带解密的密文*privateKey:加密密钥**/StringdecodeMessage=PlatformEventSecurityUtil.decode(message,privateKey);/***方法详情**/privatestaticfinalStringCIPHER_ALGORITHM="AES/CBC/PKCS5Padding"......
  • 原生JS使用window.location进行传参
    页面一发送location.href='./addUpdate.html?pageName=添加'页面二接受console.log(decodeURI(location.search.split('=')[1]));......
  • 加密锁(加密狗)保护Python应用程序防止被反编译
    开发套件使用的是原HASP/SafeNet/金雅拓/泰雷兹加密狗最新开发工具加密锁(加密狗)对python程序代码加密保护,保护自己软件版权被F法使用。(注:本文为Python程序保护的纯技术贴,欢迎留言探讨)开发工具下载:​​http://www.chinadlp.com/?list-DriveDownload.html​​概述使用圣天诺加密......
  • 圣天诺加密锁(加密狗)几个想知道的问题全在这里了
     1、加密狗能实现什么?加密狗是对软件代码进行加密保护,加密保护后的软件必须有(硬件或软件)加密狗才能使用,同时有效地防止代码被反编译。C#、java、Python等编程语言全是可以加密的。2、我从来没有使用过加密狗怎么办?使用加密狗加密保护自己的软件,是不需要写代码的,用开发工......
  • Ubuntu安装最新nodejs
    环境:Ubuntu20.04.6问题描述由于ubuntu默认的apt下载器只能下载较老版本的nodejs,而使用源代码编译又有点麻烦,因此这里采用github上官方推荐的方式,推荐看官方的教程,里面还介绍了nodejs和ubuntu的对应版本,地址如下:https://github.com/nodesource/distributions。安装步骤Dow......