Giter Club home page Giter Club logo

md5util's Introduction

md5util

Pyhton3下的实用工具集合

PyPI PyPI - Downloads

安装

pip3 install md5util

快速开始

>>> from md5util import Md5Util


# 1、获取字符串的md5
>>> Md5Util.get_md5("hello world")
'5eb63bbbe01eeed093cb22bb8f5acdc3'


# 2、获取字典值的md5
>>> data = {
        "name": "Tom", 
        "age": 23, 
        "city": "beijing"
    }
>>> Md5Util.get_data_md5(data, ['name', 'age'])
'55d61ba470dcf2241af55b734a283991'

# 相当于:
>>> Md5Util.get_md5("Tom" + str(23))
'55d61ba470dcf2241af55b734a283991'

mac自带的md5生成工具来检测生成的结果

$ md5 -s 'hello world'
MD5 ("hello world") = 5eb63bbbe01eeed093cb22bb8f5acdc3
 *------------------------------------------------------------*
 |  有趣的小插件,快试试吧 !                                     |
 *------------------------------------------------------------*
          o
           o   ^__^
            o  (oo)\_______
               (__)\       )\/\
                   ||----w |
                   ||     ||

md5util's People

Contributors

mouday avatar

Stargazers

 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.