精华内容
下载资源
问答
  • 二维码二进制
    2018-10-24 09:48:07

    本文转自:https://www.cnblogs.com/jpfss/p/9518327.html

    引用jar包:

    zxing的core包,下载路径可参考:http://download.csdn.net/detail/sxg0205/9461106

     

    java代码:

    引用包:

    import java.awt.image.BufferedImage;

    import java.io.ByteArrayOutputStream;

    import java.io.IOException;
    import java.util.Hashtable;
    import javax.imageio.ImageIO;
    import com.google.zxing.BarcodeFormat;
    import com.google.zxing.EncodeHintType;
    import com.google.zxing.MultiFormatWriter;
    import com.google.zxing.common.BitMatrix;
    import sun.misc.BASE64Encoder;  

     

    方法:

    /**
    * 二维码生成器

    * @param text 二维码内容
    * @throws IOException 
    */
        @SuppressWarnings({ "unchecked", "rawtypes", "restriction" })
    public static String generalQRCode(String url) {   
            Hashtable hints= new Hashtable();   
            hints.put(EncodeHintType.CHARACTER_SET, "utf-8");   
            String binary = null;
            
    try {
    BitMatrix bitMatrix = new MultiFormatWriter().encode(
    url, BarcodeFormat.QR_CODE, 200, 200, hints);

    // 实现一: 输出图片到指定目录
    // File outputFile = new File("d://1.jpg");
    //        MatrixToImageWriter.writeToFile(bitMatrix, "png", outputFile);

    // 实现二:生成二维码图片并将图片转为二进制传递给前台
    // 1、读取文件转换为字节数组
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    BufferedImage image = toBufferedImage(bitMatrix);
     
    ImageIO.write(image, "png", out);
    byte[] bytes = out.toByteArray();

    // 2、将字节数组转为二进制
    BASE64Encoder encoder = new BASE64Encoder(); 
    binary = encoder.encodeBuffer(bytes).trim(); 

    } catch (Exception e) {
    e.printStackTrace();


    return binary;
        }   

     

    // 其他调用方法

        public static BufferedImage toBufferedImage(BitMatrix matrix) {
            int width = matrix.getWidth();
            int height = matrix.getHeight();
            BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            for (int x = 0; x < width; x++) {
              for (int y = 0; y < height; y++) {
                image.setRGB(x, y, matrix.get(x, y) ? 0xFF000000 : 0xFFFFFFFF);
              }
            }
            
            return image;
          }

    前台ajax方法:

    $.ajax({
    url: 方法url,
    type:'post',
    success : function(data) {
    $('#img').attr('src', 'data:image/jpg;base64,' + data);
    }
    });

     

    注意:img 的src前面需要拼接data:image/jpg;base64, 在加上后台生成的二进制才能正确解析二进制

    更多相关内容
  • 、小程序前端js   js源码: wx.request({    url: app.globalData.url + "getCodeAccessToken.do", //请求服务器后台获取accessToken    data: {  },    method: 'POST',    ...

    一、服务器后台请求微信获取accessToken

    Token两个小时以内都属于有效token,一天可从微信获取的token次数为两千次,所以最好是第一次获取token保存,每次获取token前先查询数据库保存的token是否失效,未失效直接调用,失效重新获取,更新本地token。

    //获取accessToken

    public static Token getToken() throws KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, MalformedURLException, UnsupportedEncodingException, IOException, ProtocolException {
           String accessToken = null;

          String token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
           Token token = new Token();
           long expiresIn = 0;
           Map<String,String> resMap = new HashMap();
           String requestUrl = token_url.replace("APPID", APP_ID).replace("APPSECRET", APP_SECRET);
           // 发起GET请求获取凭证
           StringBuffer SubmitResult = httpsRequest(requestUrl, "GET", null, false);
           try {
               JSONObject jsonObject = JSONObject.fromObject(SubmitResult.toString());
               accessToken = jsonObject.getString("access_token");
               expiresIn = jsonObject.getInt("expires_in");
               token.setAccessToken(accessToken);
               token.setExpiresIn(expiresIn);
                  //token.setExpiresIn(jsonObject.getInt("expires_in"));
              } catch (Exception e) {
                   // 获取token失败
                   //log.error("获取token失败 errcode:{} errmsg:{}", jsonObject.getInt("errcode"), jsonObject.getString("errmsg"));
              }
           return token;
       }

       //获取token的Controller
        @RequestMapping(value = "/getCodeAccessToken", method=RequestMethod.POST)
        public void getCodeAccessToken(HttpServletResponse response){
            try {
                Token token = tokenService.getLocalToken();
                if(token == null || token.equals("")){
                          Token t = new Token();
                          t = WeChatUtil.getToken();
                          t.setId(FileTool.getUUID());
                          t.setCreateTime(System.currentTimeMillis());
                          tokenService.insertToken(t);
                          render(t.getAccessToken(), response);
                   }else{
                       long loseTime = token.getExpiresIn();
                       long createTime = token.getCreateTime();
                       long time = System.currentTimeMillis();
                       if ((time-createTime)/1000 < loseTime) {
                         render(token.getAccessToken(), response);
                       }else{
                           tokenService.deleteById(token.getId());
                           Token t = new Token();
                            t = WeChatUtil.getToken();
                            t.setId(FileTool.getUUID());
                            t.setCreateTime(System.currentTimeMillis());
                           tokenService.insertToken(t);
                          render(t.getAccessToken(), response);
                       }
                   }
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }


     //http请求工具类

     private static StringBuffer httpsRequest(String requestUrl, String requestMethod, String output,boolean needCert)
              throws NoSuchAlgorithmException, NoSuchProviderException, KeyManagementException, MalformedURLException,
              IOException, ProtocolException, UnsupportedEncodingException {


          URL url = new URL(requestUrl);
          HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();

          //是否需要数字证书
          if(needCert){
              //设置数字证书
              setCert(connection);
          }
          connection.setDoOutput(true);
          connection.setDoInput(true);
          connection.setUseCaches(false);
          connection.setRequestMethod(requestMethod);
          if (null != output) {
              OutputStream outputStream = connection.getOutputStream();
              outputStream.write(output.getBytes("UTF-8"));
              outputStream.close();
          }

          // 从输入流读取返回内容
          InputStream inputStream = connection.getInputStream();
          InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "utf-8");
          BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
          String str = null;
          StringBuffer buffer = new StringBuffer();
          while ((str = bufferedReader.readLine()) != null) {
              buffer.append(str);
          }

          bufferedReader.close();
          inputStreamReader.close();
          inputStream.close();
          inputStream = null;
          connection.disconnect();
          return buffer;
      }

    //token实体类

    public class Token {
        private String id;
        
        private String accessToken;        // access_token
        
        private long expiresIn;        // expiresin
        
        private long createTime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public long getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(long expiresIn) {
            this.expiresIn = expiresIn;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

    二、小程序前端js

     

    js源码:

    wx.request({
            
           url: app.globalData.url + "getCodeAccessToken.do", //请求服务器后台获取accessToken
            
           data: {
          },
            
          method: 'POST',
            
          header: {
          'content-type': 'application/x-www-form-urlencoded'
         },
            
       success: function (res) {

                    console.log(res);
                
                   that.setData({
                        
                  token:res.data //后台返回的accessToken
                     
               })

                wx.request({

                    url: 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token='+that.data.token, //获取小程序B接口二维码
                    
                    method: "POST",
                    
                    responseType: 'arraybuffer', //这一行非常重要,重中之重
                    
                   data: {
                       scene:'22a45fds' ,
                      page: "pages/login/login",
                      width: 280,
                     is_hyaline: true
                },
                    
                  header: {
                    'content-type': 'application/json;charset=utf-8'
               },
                    
    success(res) {

                        console.log(res.data);
                        
                        var base64 = wx.arrayBufferToBase64(res.data);

                        that.setData({ imgurl:"data:image/PNG;base64,"+ base64})

                        }

                    })

    },

                fail: function (res) {
    },

                complete: function (res) { },
    })

     

    wxml标签

    <image  src='{{imgurl}}'></image>

     

     

    展开全文
  • POST https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESS_TOKEN 获取二进制流后 header("content-type: image/jpeg"); echo $stream; 就可以直接显示出来
    POST https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESS_TOKEN
    
    

    获取二进制流后

    header("content-type: image/jpeg");
       
    
    echo $stream;
    

    就可以直接显示出来

    这是用云开发开发的小程序,可以参考一下

    在这里插入图片描述

    展开全文
  • import java.awt.Color;   import java.awt.Graphics2D;   import java.awt.Image;   import java.awt.geom.AffineTransform;   import java.awt.image.AffineTransformOp;   import java.awt.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
    然后秒出

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

    展开全文
  • ctf,二维码二进制

    2022-09-14 16:06:27
    左右拉一拉能看到二维码,用fastone capture滚动截图然后调整颜色,亮度拉倒最低,对比度拉到最高,python脚本或者工具都行。我用的二维码批量扫描工具1.1。100个png,111.txt是提取的每个图片的二维码
  • getCode() { axios({ method: "get", url: "admin/verify", responseType: "arraybuffer", // 最为关键 }).then((res)=> { ... }, 登录验证码后端返回的二进制 进行如上操作 得到的imgUrl 直接放到img标签里面就可以了
  • 后台返回的数据为 前端需要获取数据后进行转换 js文件 let url = ‘后台接口地址’ var that=this wx.request({ url: url, method: ‘GET’,  header: {  ‘Authorization’:‘token值’//请求头加入token值 ...
  • 二进制数字串生成二维码图片

    千次阅读 2019-04-20 16:09:44
    二进制数字生成二维码代码细节 打CTF比赛时,遇到题目将flag隐藏到二进制数中,数字的长度为一个整数的平方,以01表示黑白,利用Python3的PIL中的Image库,用二进制生成一个二维码。 找了我半天,主要是写个备忘。...
  • 去年的12月31号实验室发布了“想学二进制,成为逆向工程师?看这里,超精华的指南与规划!”一年过去了,第一期教程于2020年12月18日全部结束了,共有440+人加入,跟其它知识星...
  • 本文实例讲述了PHP实现接收二进制流转换成图片的方法。分享给大家供大家参考,具体如下: 这里实现php 接收二进制流转换成图片,所使用的图片类imageUpload.php如下: <?php /** * 图片类 * @version 1.0 * * PHP...
  • 我在前端请求了小程序码返回的是一堆乱码,java不太熟网上找了一个方法可以将二进制流和图片互转,但是从微信小程序码接口获取的数据用这个方法无法获取正确的图片,不知道哪里有问题;有没有只在前端就能获取小程序...
  • 为了使用二维码传输文件,上一篇文章已经实现了获取信息存入二维码并打印。由于单个二维码存储的信息量是有限的,而且文件一般也比较大,所以必须把文件先进行拆分,拆分后一块一块信息存入多张二维码中,最后通过...
  • 因为,项目需要支持vs2010的cpp提取二维码二进制数据,原本zbar和zxing都会默认进行字符集编码转换(zxing默认utf-8),导致部分0x80等二进制数据被强制编码转换,而导致无法正确识别。现通过基于zxing源码修改默认...
  • e指定格式字符串,格式...*注意它能够查看任何文件,不限于与二进制文件。文件地址命令尝试**解压缩,**发现存在密码,只可尝试爆破解压。常查看规范的十六进制和ASCII码,是否有隐藏的文件。,先生成hash文件.......
  • //--------- 这是返回二进制数据, 浏览器访问 data:image/jpg;base64, 加上字符串 ByteArrayOutputStream out = new ByteArrayOutputStream(); BufferedImage image = toBufferedImage(bitMatrix); ImageIO.write...
  • 步骤:1 :通过接口获取token,为了避免在冲突,token最好存入redis中,即用即取,注意事项:获取到accessToken取出来是带双引号的,一定要代替掉"",不然返回的转化出来的二进制不对,这个地方坑了我好久,切记切记,还有就是...
  • 二维码在本地可以正常的在jsp上显示,部署到服务器上,展示出来的却是二进制文件 我的思路是这样的 我刚开始觉得是二维码图片生成有问题,随后我放弃了生成二维码,随便选择了一个JPG传到前端显示,结 果还是...
  • 微信小程序二维码返回的二进制内容,是一个byte[] 所以直接用byte[]接收即可,然后写入文件中: req – 请求的参数json字符串 byte[] bytes = new RestTemplate().postForObject(二维码接口url + accessToken, req, ...
  • 每个 byte 转成 8 位二进制数据,二进制的 0、1表示像素点的黑白。测试点阵是 48*48 像素,2304个点,对应 288 个byte 数据。 搜了一下没找到现成轮子,想着难度也不大,参考 zxing 二维码的显示,顺便复习下 ...
  • 遇到这种情况我们需要借助wx.request这个api成功获取到图片的二进制流,然后在通过wx.arrayBufferToBase64把图片的二进制流转化成正常的64进制,然后在拼接图片的url代码如下: wx.request({ url:url, //获取...
  • 为了以后方便 小程序request请求中添加responseType: ‘arraybuffer’,
  • 但是今天发现jquery的ajax不支持二进制,只能搞纯文本 于是百度之后手动实现这一功能 function getBinary(url, args, success) { var xmlhttp = new XMLHttpRequest(); var data = eval(args); var i = ...
  • iOS,QRCord(矩阵二维码)

    2017-03-30 18:56:00
    二维条码是指在一维条码的基础上扩展出另一维具有可读性的条码,使用黑白矩形图案表示二进制数据,被设备扫描后可获取其中所包含的信息。一维条码的宽度记载着数据,而其长度没有记载数据。二维条码的长度、宽度均...
  • URL转二维码再转二进制流图片
  • Csharp保存文件 简单的C#脚本可将文件保存为二进制文件。
  • 微信小程序二维码返回的二进制上传到OSS public ResultDTO getQrCode(ReqQrCodeDTO reqQrCodeDTO) { try { //拼接URL String access_token_url = WX_APPLET_GETAT+"?appid="+WX_APPLET_ID+"&secret="+WX_APPLET...
  • 1、暗黑模式2、AppleID登录应用3、AVFoundation相关3.1、AVFoundation 高仿...二维码扫描识别和生成4、OpenGL ES学习5、LeetCode算法练习6、工作中踩过的坑6.1、键盘和UIMenuController不能同时存在的问题6.2、全屏侧滑...

空空如也

空空如也

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

二维码二进制