GithubHelp home page GithubHelp logo

cryptolib's Introduction

CryptoLib

MIT License C++ Version Build status

CryptoLib是一个轻量级C++密码类库,完全编译只需要几十KB!包括常用哈希、加解密、硬件信息获取、拓展类等模块,基于MIT协议,可以用于商业软件。

帮助文档:https://mxwxz.github.io/CryptoLib/

支持的模块

常用哈希: MD5 SHA1 SHA256 SHA512 CRC32(Poly:0xEDB88320L)

常用加解密: Base64 UrlEncode(RFC3986)

硬件信息: 硬盘序列号 MAC地址 CPU序列号 主板序列号 BIOS序列号

拓展类: 字符串类 大数类

简单地使用

HashClass::Generate(str)                        //计算str哈希值,默认返回小写
HashClass::GenerateFile(_T("File Name")));      //计算文件哈希,默认返回小写
EncodeClass::Encode(str);                       //加密
EncodeClass::Decode(str);                       //解密
InfoClass::GetSN();                             //取得序列号

鸣谢

在开发过程中,少不了下面的开源代码的支持:

ulwanski:https://github.com/ulwanski/md5

ulwanski:https://github.com/ulwanski/sha512

vog:https://github.com/vog/sha1

黑猫崽儿:http://blog.csdn.net/c_duoduo/article/details/43889759

陈秋树:http://blog.sina.com.cn/s/blog_57dff12f0100d5sn.html

liruda:http://blog.csdn.net/liruda/article/details/2254378

cryptolib's People

Contributors

mxwxz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.