Giter Site home page Giter Site logo

kook's Introduction

kook

包含内容

包含一些日常使用到的小模块,有需要直接复制对应模块源代码文件到项目中即可

  1. 编码模块
  • hex编码:16进制编码,基于字节运算。可以5A3F或5A 3F输出
  • base64编码
  • url编码:提供多种编码模式,应对不同场景
  1. X509证书内容获取

  2. md5摘要

  3. 基于RSA的随机数序列生成

  4. zlib压缩

  5. 日志模块

  6. 线程池模块

  7. 其它模块

  • IP段分割/遍历
  • 获取CPU核心数
  • 字符串分割

测试

所有模块的测试代码都在main.cpp文件中,要测试那个模块就将模块的测试代码注释去掉,然后编译运行测试即可

  1. Windows测试:在./kook/WIN32/kook/下有一个VS2015项目工程文件,也包含使用到的libs第三方库文件,可使用VS2015打开直接编译测试

  2. Linux测试,依赖gcc,gcc-c++,pthread,openssl,zlib,需要先安装依赖。在main.cpp中的模块测试代码有标准g++编译命令,要测试什么模块,只需要将测试代码的注释去掉,然后运行g++命令即可编译运行

使用说明

暂时没有使用说明,后续会在csdn中补充技术文章,这里先看.h中的函数注释与main中的测试实例来使用

kook's People

Contributors

wkookw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.