精华内容
下载资源
问答
  • 二维码是二进制
    2021-06-21 10:27:30
    getCode() {
       axios({
            method: "get",
            url: "admin/verify",
            responseType: "arraybuffer", // 最为关键
        }).then((res)=> {
            this.imgUrl =
            "data:image/jpeg;base64," + this.arrayBufferToBase64(res.data);
            console.log(this.imgUrl)
        });
    },
    arrayBufferToBase64(buffer) {
         var binary = "";
         var bytes = new Uint8Array(buffer);
         var len = bytes.byteLength;
         for (var i = 0; i < len; i++) {
             binary += String.fromCharCode(bytes[i]);
         }
         return window.btoa(binary);
     },
    

    登录验证码后端返回的二进制 进行如上操作
    得到的imgUrl 直接放到img标签里面就可以了

    更多相关内容
  • 小程序生成二维码并且把二进制流转换图片
  • 二维码在本地可以正常的在jsp上显示,部署到服务器上,展示出来的却是二进制文件 我的思路是这样的 我刚开始觉得是二维码图片生成有问题,随后我放弃了生成二维码,随便选择了一个JPG传到前端显示,结 果还是...
    先说一下我的配置

    centos 7.0
    jdk 1.7
    apache tomcat 7.0
    spring mvc 4.0

    做微信扫码支付遇到一个很严重的问题

    二维码在本地可以正常的在jsp上显示,部署到服务器上,展示出来的却是二进制文件

    我的思路是这样的

    我刚开始觉得是二维码图片生成有问题,随后我放弃了生成二维码,随便选择了一个JPG传到前端显示,结
    果还是显示的二进制文件。这已经不是二维码的问题了。我考虑可能是服务器不能识别返回的数据类型,
    比如没有告诉他我要返回一张图片,事实证明果然是这样的,需要设置返回类型,但是我不知道这是哪个
    组件造成。

    后来设置一下response的返回类型就好了。贴代码
    @RequestMapping("/showQr")
    public void showQr(HttpServletResponse response){
    
        // 设置返回类型,禁用缓存
        response.setHeader("Pragma", "no-cache");
        response.setHeader("Cache-Control", "no-cache");
        response.setDateHeader("Expires", 0);
        response.setContentType("image/jpeg");
        // 请求二维码支付链接
        String qrUrl = getQrContent();
        try {
        // 调用google的二维码API
        QrUtil.createQrCode(response.getOutputStream(), qrUrl);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    
    不要在意流没有关闭这些细节,重点关注这一句response.setContentType("image/jpeg")
    展开全文
  • 后台返回的数据为 前端需要获取数据后进行转换 js文件 let url = ‘后台接口地址’ var that=this wx.request({ url: url, method: ‘GET’,  header: {  ‘Authorization’:‘token值’//请求头加入token值 ...

    后台返回的数据为在这里插入图片描述前需要获取数据后进行转换
    js文件
    let url = ‘后台接口地址’
    var that=this
    wx.request({
    url: url,
    method: ‘GET’,
       header: {
       ‘Authorization’:‘token值’//请求头加入token值
      },
    responseType: ‘arraybuffer’, //将原本按文本解析修改为arraybuffer
    success: function(res) {
      //转为base64后赋值
    that.setData({
    imgUrl: wx.arrayBufferToBase64(res.data)
    })
    }
    })
    xwml文件<image src="https://img-blog.csdnimg.cn/2022010617285390903.jpeg"></image>

    展开全文
  • python下二进制流文件转二维码

    千次阅读 2019-09-28 16:07:01
    python下二进制流文件转二维码 之前做过的一个ctf中的misc,经过一系列操作得到一个flag.txt 里面是一串二进制流 突然束手无策 经简单计算 260^2=67600 所以尝试能否转化为一个二维码 网上找了好久,没找到好用的...

    python下二进制流文件转二维码

    之前做过的一个ctf中的misc,经过一系列操作得到一个flag.txt
    里面是一串二进制流
    突然束手无策
    在这里插入图片描述
    经简单计算
    260^2=67600
    所以尝试能否转化为一个二维码

    网上找了好久,没找到好用的轮子
    然后果断寻求大佬帮助

    大佬毕竟还是大佬啊
    这里直接祭出源码

    import PIL
    from PIL import Image
    MAX = 260
    img = Image.new("RGB",(MAX,MAX))
    str="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000000000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000000000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111100000000000000000000000001111111110000000000000000111111111111111110000000001111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111100000000000000000000000001111111110000000000000000111111111111111110000000001111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111111111111111111111111111111000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111111111111111111111111111111000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111000000000111111110000000011111111111111111000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111000000000111111110000000011111111111111111000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000011111111100000000000000000000000001111111111111111111111111000000000000000000000000000000000000000000111111110000000001111111100000000111111111111111110000000001111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000011111111100000000000000000000000001111111111111111111111111000000000000000000000000000000000000000000111111110000000001111111100000000111111111111111110000000001111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111111111111111111111000000000000000000000000011111111111111111111111111111111110000000000000000011111111111111111111111110000000011111111111111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111111111111111111111000000000000000000000000011111111111111111111111111111111110000000000000000011111111111111111111111110000000011111111111111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000000000000111111110000000000000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000111111110000000000000000000000000011111111111111110000000001111111111111111111111111111111111111111111111111100000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000000000000111111110000000000000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000111111110000000000000000000000000011111111111111110000000001111111111111111111111111111111111111111111111111100000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111111111111111111111111111111000000001111111111111111100000000111111111000000000000000001111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111111111111111111111111111111000000001111111111111111100000000111111111000000000000000001111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111000000000111111110000000000000000011111111111111111111111110000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111000000000111111110000000000000000011111111111111111111111110000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111111111111000000000000000011111111111111111111111111111111111111111111111111100000000111111111000000001111111111111111100000000111111111111111111111111111111111111111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111111111111000000000000000011111111111111111111111111111111111111111111111111100000000111111111000000001111111111111111100000000111111111111111111111111111111111111111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000000000000011111111111111111111111110000000000000000011111111100000000000000001111111111111111111111111100000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000000000000000000000011111111000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000000000000011111111111111111111111110000000000000000011111111100000000000000001111111111111111111111111100000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000000000000000000000011111111000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000111111110000000000000000000000000000000000111111111111111110000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000111111111111111111111111111111111111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000111111110000000000000000000000000000000000111111111111111110000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000111111111111111111111111111111111111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111100000000000000001111111110000000000000000011111111000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111100000000000000001111111110000000000000000011111111000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000000000000000000000000000000111111111111111111111111100000000111111111000000001111111111111111111111111111111111111111111111111111111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000000000000000000000000000000111111111111111111111111100000000111111111000000001111111111111111111111111111111111111111111111111111111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000111111110000000000000000000000000000000001111111111111111111111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000111111110000000000000000000000000000000001111111111111111111111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111100000000111111111111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111100000000111111111111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    i = 0
    for y in range (0,MAX):
    
    
        for x in range (0,MAX):
    
    
            if(str[i] == '1'):
    
    
                img.putpixel([x,y],(0, 0, 0))
    
    
            else:
    
    
                img.putpixel([x,y],(255,255,255))
    
    
            i = i+1
    img.show()
    img.save("flag.png")
    
    

    然后这里需要注意
    win下的PIL并不太容易装
    而kali下集成了python环境,而且内置很多库
    所以这里需要在kali下run
    然后秒出

    在这里插入图片描述
    同时在文件夹下多了一个这玩意
    在这里插入图片描述

    展开全文
  • 二进制数字串生成二维码图片

    千次阅读 2019-04-20 16:09:44
    二进制数字生成二维码代码细节 打CTF比赛时,遇到题目将flag隐藏到二进制数中,数字的长度为一个整数的平方,以01表示黑白,利用Python3的PIL中的Image库,用二进制生成一个二维码。 找了我半天,主要是写个备忘。...
  • 步骤:1 :通过接口获取token,为了避免在冲突,token最好存入redis中,即用即取,注意事项:获取到accessToken取出来是带双引号的,一定要代替掉"",不然返回的转化出来的二进制不对,这个地方坑了我好久,切记切记,还有就是...
  • // 实现二:生成二维码图片并将图片转为二进制传递给前台 // 1、读取文件转换为字节数组 ByteArrayOutputStream out = new ByteArrayOutputStream(); BufferedImage image = toBufferedImage(bitMatrix); //// ...
  • 、小程序前端js   js源码: wx.request({    url: app.globalData.url + "getCodeAccessToken.do", //请求服务器后台获取accessToken    data: {  },    method: 'POST',    ...
  • 每个 byte 转成 8 位二进制数据,二进制的 0、1表示像素点的黑白。测试点阵是 48*48 像素,2304个点,对应 288 个byte 数据。 搜了一下没找到现成轮子,想着难度也不大,参考 zxing 二维码的显示,顺便复习下 ...
  • 本文实例讲述了PHP实现接收二进制流转换成图片的方法。分享给大家供大家参考,具体如下: 这里实现php 接收二进制流转换成图片,所使用的图片类imageUpload.php如下: <?php /** * 图片类 * @version 1.0 * * PHP...
  • //--------- 这是返回二进制数据, 浏览器访问 data:image/jpg;base64, 加上字符串 ByteArrayOutputStream out = new ByteArrayOutputStream(); BufferedImage image = toBufferedImage(bitMatrix); ImageIO.write...
  • 但是今天发现jquery的ajax不支持二进制,只能搞纯文本 于是百度之后手动实现这一功能 function getBinary(url, args, success) { var xmlhttp = new XMLHttpRequest(); var data = eval(args); var i = ...
  • 因为,项目需要支持vs2010的cpp提取二维码二进制数据,原本zbar和zxing都会默认进行字符集编码转换(zxing默认utf-8),导致部分0x80等二进制数据被强制编码转换,而导致无法正确识别。现通过基于zxing源码修改默认...
  • 我可以用zxing将一个Url转为一个二维码图片,可是怎么将这个图片转换成数据流呢?类似IOS里面的NSdata的数据格式?
  • <p>java 二维码图片转二进制 存进Oracle 使用什么技术呢?</p>
  • POST https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESS_TOKEN 获取二进制流后 header("content-type: image/jpeg"); echo $stream; 就可以直接显示出来
  • 二维码分类

    千次阅读 2020-09-29 14:37:14
    概念: 维条码/二维码(2-dimensional bar code)是用某种特定的几何图形按一定规律在平面(位方向上)分布的黑白相间的图形记录数据符号信息的图形。 一维条码 一维条码是由一组粗细不同、黑白(或彩色)相间的...
  • 微信小程序二维码返回的二进制内容,是一个byte[] 所以直接用byte[]接收即可,然后写入文件中: req – 请求的参数json字符串 byte[] bytes = new RestTemplate().postForObject(二维码接口url + accessToken, req, ...
  • 前提业务要求:前台页面展示数据,有下载按钮,点击下载,下载对应数据的二维码。 首先,在pom.xml文件中添加依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>...
  • 使用js的QRcode.js自动生成二维码,支持实现中文的转换,其中还包括在二维码中插入小图片。
  • } //二进制转图片image/png public function data_uri($contents, $mime) { $base64 = base64_encode($contents); return ('data:' . $mime . ';base64,' . $base64); } public function httpRequest($url, $data='...
  • URL转二维码再转二进制流图片
  • 1、暗黑模式2、AppleID登录应用3、AVFoundation相关3.1、AVFoundation 高仿...二维码扫描识别和生成4、OpenGL ES学习5、LeetCode算法练习6、工作中踩过的坑6.1、键盘和UIMenuController不能同时存在的问题6.2、全屏侧滑...
  • Android图片二进制与Bitmap、Drawable之间的转换Java代码public byte[]getBitmapByte(Bitmap bitmap){ByteArrayOutputStream out= new ByteArrayOutputStream();bitmap.compress(Bitmap.CompressFormat.JPEG, 100, ...
  • 获取微信小程序码,得到二进制流后转化为base64,同时修改图片分辨率 InputStreamin = new new FileInputStream(path); // 模拟得到图片二进制内容 // 将文件二进制流修改为图片流 Image srcImg = ImageIO.read(in...
  • VB二维码生成与解码的源代码...输入字符串,包括中文,可生成二维码,利用扫码设备扫描二维码可显示二维码的字符,其中,中文通过unicode编码,生成二维码,通过扫码获得二维码字符串后再,再进行解码得到中文 ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 16,252
精华内容 6,500
关键字:

二维码是二进制