V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Azumo
V2EX  ›  程序员

唯一指定链接:请阅读以下代码

  •  
  •   Azumo · 2017-08-05 15:10:48 +08:00 · 2763 次点击
    这是一个创建于 2665 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天突然想起以前的一张 java 合租图片梗,电话号码是代码,然后脑抽就写了个自己的唯一指定链接

    static void Main()
    {
        string[] a = new string[] {"o","-","z","u","m","c","@",".","t","a","k","l"};
        int[] b = new int[] {9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4 };
        Console.Write("Email:");
        for (int i = 0; i <= b.Length - 1; i++)
        {
            int c = b[i];
            Console.Write(a[c]);
        }
        Console.ReadKey();
    }
    
    11 条回复    2017-08-05 18:33:15 +08:00
    zjsxwc
        1
    zjsxwc  
       2017-08-05 15:18:04 +08:00
    随手转成 js。。

    var a = ["o","-","z","u","m","c","@",".","t","a","k","l"];
    var b = [9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4];
    var email = "";
    for (var i = 0; i <= b.length - 1; i++){
    var c = b[i];
    email += a[c];
    }
    console.log(email);
    Azumo
        2
    Azumo  
    OP
       2017-08-05 15:24:32 +08:00
    万用格式 233
    pia
        3
    pia  
       2017-08-05 15:39:57 +08:00
    唯一指定链接是什么?正在学 python。。
    a = '[email protected]'
    b = [9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4]
    email = ''
    for i in range(len(b)):email+=a[b[i]]
    print(email)
    lzhr
        4
    lzhr  
       2017-08-05 15:50:28 +08:00   ❤️ 1
    whileFalse
        5
    whileFalse  
       2017-08-05 15:58:37 +08:00
    请问这是什么语言。
    blanu
        6
    blanu  
       2017-08-05 16:02:18 +08:00
    用人脑就能解密了= =,好歹加个 Base64 啥的
    Azumo
        7
    Azumo  
    OP
       2017-08-05 16:39:34 +08:00
    c#
    Azumo
        8
    Azumo  
    OP
       2017-08-05 16:40:00 +08:00
    u5f20u98de
        9
    u5f20u98de  
       2017-08-05 17:16:46 +08:00
    func main(){
    a:=[]string{"o","-","z","u","m","c","@",".","t","a","k","l"}
    b:=[]int{9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4 }
    for _,num:=range b{
    print(a[num])
    }
    }
    sobigfish
        10
    sobigfish  
       2017-08-05 18:15:41 +08:00
    @lzhr #4 所以你就直接让其把楼主的 email 记住了😂

    在 pc/手机 方便选择复制的话应该还是 js 的 (直接写成 url 的模式?但 chrome 里复制会把 javascript:自动去除)
    minify by javascript-minifier.com(不清楚写法稳妥不)

    javascript:for(var a=["o","-","z","u","m","c","@",".","t","a","k","l"],b=[9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4],email="",i=0;i<=b.length-1;i++){var c=b[i];email+=a[c]}document.write(email);
    chenyu0532
        11
    chenyu0532  
       2017-08-05 18:33:15 +08:00
    好吧。。仅当娱乐贴。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5487 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 03:27 · PVG 11:27 · LAX 19:27 · JFK 22:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.